Linux: consolidate lchown implementation
commit25ca6175bacb40b9704458e53ddee58865d8ab2b
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:11 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
treed48caceb2aaf5a65bc635063520e7996852caae2
parent842128f160a48e5545900ea3bc3ba2ce40539d11
Linux: consolidate lchown implementation

Use lchown 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/lchown.c [moved from sysdeps/unix/sysv/linux/generic/lchown.c with 75% similarity]