https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196724

Jilles Tjoelker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|New                         |Open

--- Comment #1 from Jilles Tjoelker <[email protected]> ---
When following symlinks, fts returns FTS_SLNONE when stat() fails, but a
subsequent lstat() succeeds (in recent versions fstatat() without and with
AT_SYMLINK_NOFOLLOW). This incorrectly triggers if a filename exists to be read
from the directory, is deleted before the stat and created again after the
stat.

Clearly, the code should only return FTS_SLNONE if S_ISLNK(sbp->st_mode). What
it should do otherwise is less clear. We could go back to stat() and try some
number of times for stat() and lstat() to become consistent, or we could return
FTS_NS immediately.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to