diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-06-14 12:52:20 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-06-14 12:52:20 -0400 |
commit | 83150980687d644bb0c4faad1c297d1b5b9018b6 (patch) | |
tree | 40acc1d18a556341e931a98bcc5575f112b861e1 /src/parse.c | |
parent | 2f207fcd8b20aeb804c6a3d2f399d5c350a0405d (diff) | |
download | bfs-83150980687d644bb0c4faad1c297d1b5b9018b6.tar.xz |
parse: Don't default to depth-first when argv[0] is "find"
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 6 |
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; |