SCCS-vsn: lib/libc/gen/fts.c 5.10
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fts.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)fts.c 5.10 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
p->fts_link = root;
root = p;
p->fts_accpath = p->fts_name;
p->fts_link = root;
root = p;
p->fts_accpath = p->fts_name;
- p->fts_info = fts_stat(p, 0);
+ if (!(options & FTS_NOSTAT))
+ p->fts_info = fts_stat(p, 0);
} else {
p->fts_link = NULL;
if (!root)
} else {
p->fts_link = NULL;
if (!root)