projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e1f441
)
Actually set the again flag when calling the dirtree comeagain callback.
author
Rob Landley
<rob@landley.net>
Wed, 30 Jul 2014 01:02:31 +0000
(20:02 -0500)
committer
Rob Landley
<rob@landley.net>
Wed, 30 Jul 2014 01:02:31 +0000
(20:02 -0500)
lib/dirtree.c
patch
|
blob
|
history
diff --git
a/lib/dirtree.c
b/lib/dirtree.c
index
8445ca4
..
df95e91
100644
(file)
--- 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);