aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dirtree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dirtree.c b/lib/dirtree.c
index 8445ca40..df95e918 100644
--- a/lib/dirtree.c
+++ b/lib/dirtree.c
@@ -163,7 +163,10 @@ int dirtree_recurse(struct dirtree *node,
}
}
- if (flags & DIRTREE_COMEAGAIN) flags = callback(node);
+ if (flags & DIRTREE_COMEAGAIN) {
+ node->again++;
+ flags = callback(node);
+ }
// This closes filehandle as well, so note it
closedir(dir);