]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r260571: fts: Stat things relative to the directory fd, if possible.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 18 Apr 2015 21:31:36 +0000 (21:31 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 18 Apr 2015 21:31:36 +0000 (21:31 +0000)
commit86b3b9e5047d46d64ac796e63632f272641b2b35
tree66cca6ad6aa41f4ff427aac49a27dfd8700c0853
parent6a801a642f77c5ac22767ee9272d1bbe6ad32a4e
MFC r260571: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@281711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/fts.c