CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2014/11/19 21:14:15

Modified files:
        lib/libc/gen   : fts.c 

Log message:
Merge from FreeBSD:
--------
r260571 | jilles | 2014-01-12 12:30:55 -0800 (Sun, 12 Jan 2014) | 9 lines

fts: Stat things relative to the directory fd, if possible.

As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).

Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.
--------

Prompted by a similar diff from (enh (at) google.com), who also reran a
performance test.

ok millert@

Reply via email to