fix failure of fchmodat to report EOPNOTSUPP in the race path
authorRich Felker <dalias@aerifal.cx>
Fri, 6 Feb 2015 04:34:27 +0000 (23:34 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 6 Feb 2015 04:34:27 +0000 (23:34 -0500)
commit61b1d102129990f6e903c6ddcf46c7d79d1a1e99
tree3ee30115dcaa23771352bd0c2bbf8204ee40d4cd
parent2736eb6caa70bb6e909d7d8ebbe145c2071435e0
fix failure of fchmodat to report EOPNOTSUPP in the race path

in the case where a non-symlink file was replaced by a symlink during
the fchmodat operation with AT_SYMLINK_NOFOLLOW, mode change on the
new symlink target was successfully suppressed, but the error was not
reported. instead, fchmodat simply returned 0.
src/stat/fchmodat.c