summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-04-15 10:21:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-04-20 14:18:03 -0400
commita559ffac8c65f469adefcd2d4a5c41790d7e6d05 (patch)
treeb2bacf4764570d755362ea372804aa84188fc8c4 /eval.c
parent60020d1f52d032c495785802c44226a63a217737 (diff)
downloadbfs-a559ffac8c65f469adefcd2d4a5c41790d7e6d05.tar.xz
[WIP] bftw: Push all files onto the queue before visiting themqueue-files
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/eval.c b/eval.c
index 341b289..3b054fa 100644
--- a/eval.c
+++ b/eval.c
@@ -1206,7 +1206,6 @@ static const char *dump_bftw_visit(enum bftw_visit visit) {
static const char *dump_bftw_action(enum bftw_action action) {
static const char *actions[] = {
DUMP_BFTW_MAP(BFTW_CONTINUE),
- DUMP_BFTW_MAP(BFTW_SKIP_SIBLINGS),
DUMP_BFTW_MAP(BFTW_SKIP_SUBTREE),
DUMP_BFTW_MAP(BFTW_STOP),
};
@@ -1273,11 +1272,8 @@ static enum bftw_action cmdline_callback(struct BFTW *ftwbuf, void *ptr) {
state.action = BFTW_SKIP_SUBTREE;
}
- // In -depth mode, only handle directories on the BFTW_POST visit
enum bftw_visit expected_visit = BFTW_PRE;
- if ((cmdline->flags & BFTW_DEPTH)
- && ftwbuf->typeflag == BFTW_DIR
- && ftwbuf->depth < cmdline->maxdepth) {
+ if ((cmdline->flags & BFTW_DEPTH) && ftwbuf->depth < cmdline->maxdepth) {
expected_visit = BFTW_POST;
}