summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-06-14 12:52:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-14 12:52:20 -0400
commit83150980687d644bb0c4faad1c297d1b5b9018b6 (patch)
tree40acc1d18a556341e931a98bcc5575f112b861e1 /src
parent2f207fcd8b20aeb804c6a3d2f399d5c350a0405d (diff)
downloadbfs-83150980687d644bb0c4faad1c297d1b5b9018b6.tar.xz
parse: Don't default to depth-first when argv[0] is "find"
Diffstat (limited to 'src')
-rw-r--r--src/parse.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/parse.c b/src/parse.c
index 96def14..e5981d4 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -3736,12 +3736,6 @@ struct bfs_ctx *bfs_parse_cmdline(int argc, char *argv[]) {
.now = ctx->now,
};
- const char *cmd = state.command + xbaseoff(state.command);
- if (strcmp(cmd, "find") == 0) {
- // Operate depth-first when invoked as "find"
- ctx->strategy = BFTW_DFS;
- }
-
ctx->exclude = bfs_expr_new(eval_false, 1, &fake_false_arg);
if (!ctx->exclude) {
goto fail;