summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/fts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fts.c b/lib/fts.c
index ed09697e0..fb1a72a00 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -522,6 +522,7 @@ next: tmp = p;
if (p->fts_level == FTS_ROOTLEVEL) {
if (FCHDIR(sp, sp->fts_rfd)) {
SET(FTS_STOP);
+ sp->fts_cur = p;
return (NULL);
}
fts_load(sp, p);