fdutimensat: drop atflag validation
authorEric Blake <eblake@redhat.com>
Fri, 17 Sep 2010 14:29:16 +0000 (08:29 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 17 Sep 2010 14:34:59 +0000 (08:34 -0600)
commit18aae5b74420237d8c827e7c68312c5b71d659dc
treeca6a30f1b82667210506cebb66fbb179e0e58241
parentad739a2be8c9eccadb7932665420a7c835fb8bd2
fdutimensat: drop atflag validation

* lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
with valid fd, to close a race scenario where futimens is
unsupported and FILE was replaced by a symlink.
* tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
accordingly.
Suggested by Paul Eggert.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/fdutimensat.c
tests/test-fdutimensat.c