summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/eval.c b/eval.c
index 37bea60..3a97585 100644
--- a/eval.c
+++ b/eval.c
@@ -468,17 +468,8 @@ bool eval_exec(const struct expr *expr, struct eval_state *state) {
exec_chdir(ftwbuf);
}
- if (expr->exec_flags & EXEC_CONFIRM) {
- if (redirect(STDIN_FILENO, "/dev/null", O_RDONLY) < 0) {
- perror("redirect()");
- goto exit;
- }
- }
-
execvp(argv[0], argv);
perror("execvp()");
-
- exit:
_Exit(EXIT_FAILURE);
}