summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent1e1f4412d8c4ef7c0442b62ee507ca48a07ade06 (diff)
downloadtoybox-749c523240100484151b94a57b94ea44f2f28315.tar.gz
toybox-749c523240100484151b94a57b94ea44f2f28315.tar.bz2
toybox-749c523240100484151b94a57b94ea44f2f28315.zip
Actually set the again flag when calling the dirtree comeagain callback.
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 8445ca4..df95e91 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);