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
..
2015-01-03 18:38:46 +00:00
2015-02-27 19:23:01 +00:00
2014-07-15 02:21:35 +00:00
2014-12-21 12:36:36 +00:00
2014-06-23 08:25:03 +00:00
2014-03-16 11:04:44 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-07-29 00:16:33 +00:00
2015-02-06 14:07:01 +00:00
2014-10-09 22:58:33 +00:00
2015-01-03 18:09:53 +00:00
2014-06-23 08:25:03 +00:00
2015-02-14 15:14:41 +00:00
2014-11-25 03:50:31 +00:00
2015-02-15 21:11:07 +00:00
2014-12-21 12:36:36 +00:00
2015-04-04 20:22:12 +00:00
2014-12-21 12:36:36 +00:00
2014-07-11 16:16:26 +00:00
2014-12-21 12:36:36 +00:00
2015-02-20 01:02:32 +00:00
2014-10-27 04:09:23 +00:00
2014-04-05 18:14:58 +00:00
2014-06-23 08:25:03 +00:00
2015-03-06 22:22:57 +00:00
2014-01-20 18:15:06 +00:00
2014-06-23 08:25:03 +00:00
2014-10-27 04:09:23 +00:00
2014-11-25 03:50:31 +00:00
2015-01-03 18:38:46 +00:00
2015-02-28 18:22:10 +00:00
2015-02-28 18:22:10 +00:00
2015-03-18 13:54:53 +00:00
2014-07-11 16:16:26 +00:00
2015-01-11 22:16:31 +00:00
2014-01-30 18:04:39 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-12-21 12:36:36 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-06-23 08:25:03 +00:00
2014-08-13 14:49:51 +00:00
2015-01-11 22:16:31 +00:00
2014-07-11 16:16:26 +00:00
2014-07-15 02:21:35 +00:00
2014-09-03 19:01:34 +00:00
2014-04-02 16:07:48 +00:00
2014-12-21 12:36:36 +00:00
2014-04-02 16:07:48 +00:00
2014-10-24 19:55:49 +00:00
2014-10-24 19:55:49 +00:00
2014-10-24 19:55:49 +00:00
2015-01-28 22:42:56 +00:00
2014-10-24 19:55:49 +00:00
2015-01-28 22:42:56 +00:00
2014-10-24 19:55:49 +00:00
2014-10-24 19:55:49 +00:00
2015-02-22 20:16:44 +00:00
2015-03-26 21:58:06 +00:00
2014-06-23 08:25:03 +00:00
2015-01-08 01:27:43 +00:00
2015-01-11 22:16:31 +00:00
2014-06-23 08:25:03 +00:00
2015-01-11 22:16:31 +00:00
2014-07-09 19:12:18 +00:00
2014-11-25 20:59:22 +00:00
2014-07-29 00:16:33 +00:00
2014-07-11 16:16:26 +00:00
2015-01-03 18:38:46 +00:00
2014-11-25 03:50:31 +00:00
2015-01-12 18:13:38 +00:00
2014-07-18 21:29:59 +00:00
2015-02-01 22:50:33 +00:00
2015-02-17 16:01:00 +00:00
2015-01-11 22:16:31 +00:00
2015-01-11 22:16:31 +00:00
2015-01-11 22:16:31 +00:00
2015-01-11 22:16:31 +00:00
2015-03-31 20:51:01 +00:00