commit | 749c523240100484151b94a57b94ea44f2f28315 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Tue Jul 29 20:02:31 2014 -0500 |
committer | Rob Landley <rob@landley.net> | Tue Jul 29 20:02:31 2014 -0500 |
tree | 459a935adea72802469c6c139323bb5e6dcb957b | |
parent | 1e1f4412d8c4ef7c0442b62ee507ca48a07ade06 [diff] [blame] |
Actually set the again flag when calling the dirtree comeagain callback.
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 @@ } } - 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);