diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1091,7 +1091,7 @@ static enum bftw_action cmdline_callback(struct BFTW *ftwbuf, void *ptr) { goto done; } - if (ftwbuf->depth >= cmdline->maxdepth) { + if (cmdline->maxdepth < 0 || ftwbuf->depth >= cmdline->maxdepth) { state.action = BFTW_SKIP_SUBTREE; } @@ -1216,13 +1216,6 @@ int eval_cmdline(const struct cmdline *cmdline) { return EXIT_SUCCESS; } - if (cmdline->optlevel >= 4 && cmdline->expr->eval == eval_false) { - if (cmdline->debug & DEBUG_OPT) { - fputs("-O4: skipping evaluation of top-level -false\n", stderr); - } - return EXIT_SUCCESS; - } - int nopenfd = infer_fdlimit(cmdline); struct callback_args args = { |