aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-07-29 20:02:31 -0500
committerRob Landley <rob@landley.net>2014-07-29 20:02:31 -0500
commit749c523240100484151b94a57b94ea44f2f28315 (patch)
tree459a935adea72802469c6c139323bb5e6dcb957b
parent1e1f4412d8c4ef7c0442b62ee507ca48a07ade06 (diff)
downloadtoybox-749c523240100484151b94a57b94ea44f2f28315.tar.gz
Actually set the again flag when calling the dirtree comeagain callback.
-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);