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>
Mon, 30 Mar 2015 05:43:48 +0000 (01:43 -0400)
commitd670873b7ed315001f5a9dcc5208b54c383c9176
tree1030baa3ba354dc4a707b725fb4c825eb4869a82
parentc534aad07df48a130e342fb78304b80778d53c64
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.

(cherry picked from commit 61b1d102129990f6e903c6ddcf46c7d79d1a1e99)

(conflicts from commit dd5f50da6f6c3df5647e922e47f8568a8896a752)
src/stat/fchmodat.c