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

Jilles Tjoelker <jil...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jil...@freebsd.org
             Status|New                         |Open

--- Comment #1 from Jilles Tjoelker <jil...@freebsd.org> ---
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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to