diff options
author | Rob Landley <rob@landley.net> | 2014-07-29 20:02:31 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-07-29 20:02:31 -0500 |
commit | 749c523240100484151b94a57b94ea44f2f28315 (patch) | |
tree | 459a935adea72802469c6c139323bb5e6dcb957b /lib | |
parent | 1e1f4412d8c4ef7c0442b62ee507ca48a07ade06 (diff) | |
download | toybox-749c523240100484151b94a57b94ea44f2f28315.tar.gz |
Actually set the again flag when calling the dirtree comeagain callback.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dirtree.c | 5 |
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); |