]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fchmodat: add limited support for AT_SYMLINK_NOFOLLOW
authorKen Brown <kbrown@cornell.edu>
Tue, 26 Jan 2021 20:54:05 +0000 (15:54 -0500)
committerKen Brown <kbrown@cornell.edu>
Fri, 29 Jan 2021 16:50:53 +0000 (11:50 -0500)
commit883abd9d7d51ca3cd089acda5917f9fb80a85745
tree88f059f13829d7e11fd3a6c6c66012dc97b6c8be
parent253352e796ff9ec9a447e5375f5bc3e2b92b5293
Cygwin: fchmodat: add limited support for AT_SYMLINK_NOFOLLOW

Allow fchmodat with the AT_SYMLINK_NOFOLLOW flag to succeed on
non-symlinks.  Previously it always failed, as it does on Linux.  But
POSIX permits it to succeed on non-symlinks even if it fails on
symlinks.

The reason for following POSIX rather than Linux is to make gnulib
report that fchmodat works on Cygwin.  This improves the efficiency of
packages like GNU tar that use gnulib's fchmodat module.  Previously
such packages would use a gnulib replacement for fchmodat on Cygwin.
winsup/cygwin/syscalls.cc
This page took 0.029997 seconds and 5 git commands to generate.