Jilles Tjoelker d30c6f8edf fts: Don't return FTS_SLNONE if it's not a symlink (if race).
When following symlinks, fts returned FTS_SLNONE when fstatat(flag=0)
failed, but a subsequent fstatat(flag=AT_SYMLINK_NOFOLLOW) succeeded. This
incorrectly triggered if a filename existed to be read from the directory,
was deleted before the fstatat(flag=0) and created again after the
fstatat(flag=0).

Fix this by only returning FTS_SLNONE if the result from
fstatat(flag=AT_SYMLINK_NOFOLLOW) is actually a symlink. If it is not a
symlink, treat it as if fstatat(flag=0) succeeded.

PR:		196724
Reported and tested by:	pho
MFC after:	1 week
2015-04-04 20:22:12 +00:00
..
2011-11-26 16:49:25 +00:00
2012-08-11 12:07:24 +00:00
2011-10-01 12:19:48 +00:00
2011-10-01 12:19:48 +00:00
2013-08-18 13:25:18 +00:00
2012-04-26 19:21:58 +00:00
2011-05-25 14:13:53 +00:00
2015-02-15 21:11:07 +00:00
2011-12-20 22:56:13 +00:00
2013-04-11 20:15:37 +00:00
2009-03-04 01:01:26 +00:00
2012-03-26 15:18:14 +00:00
2011-02-04 16:40:50 +00:00
2013-04-23 13:03:03 +00:00
2013-04-23 13:03:03 +00:00
2012-12-12 15:27:33 +00:00
2009-05-07 13:49:48 +00:00
2014-11-25 03:50:31 +00:00
2010-01-17 15:43:14 +00:00
2015-02-17 16:01:00 +00:00
2015-03-31 20:51:01 +00:00