From 83150980687d644bb0c4faad1c297d1b5b9018b6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 14 Jun 2023 12:52:20 -0400 Subject: parse: Don't default to depth-first when argv[0] is "find" --- src/parse.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/parse.c') 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; -- cgit v1.2.3