Linux: consolidate chown implementation
commit1001abfa14d5289236dcca740ab72ec4d1fa5352
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:07 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
treefe0be9a5be60e74feb4adc15beca50ddf21a6305
parentf0fa84d31fac30ce0f5cba715751478253f4ba8c
Linux: consolidate chown implementation

Use chown syscall if defined, otherwise use fchownat.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/chown.c [moved from sysdeps/unix/sysv/linux/generic/chown.c with 77% similarity]