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
..
2014-12-23 10:43:35 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-27 08:22:58 +00:00
2015-02-08 23:03:41 +00:00
2014-01-21 21:13:13 +00:00
2014-12-29 21:52:32 +00:00
2014-11-25 11:07:26 +00:00
2014-12-25 21:56:56 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2015-01-06 22:29:12 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-29 21:59:44 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:08:58 +00:00
2015-03-30 19:10:09 +00:00
2015-03-03 07:51:36 +00:00
2014-11-25 11:07:26 +00:00
2015-01-19 02:22:03 +00:00
2014-12-27 21:11:42 +00:00