Linux: consolidate chmod implementation
commitf0fa84d31fac30ce0f5cba715751478253f4ba8c
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:06 +0000 (19 19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 14:27:01 +0000 (7 11:27 -0300)
tree3d661ea0314bb9544db4fee948493e65209d8cc1
parentb14e1f9fcd3ca4dd86d0637f6e32e7bf642394da
Linux: consolidate chmod implementation

Use chmod syscall if defined, otherwise use fchmodat.

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