aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index d9595bb8f..9798a9675 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10234,6 +10234,7 @@ setinputfile(const char *fname, int flags)
10234 if (fd < 0) { 10234 if (fd < 0) {
10235 if (flags & INPUT_NOFILE_OK) 10235 if (flags & INPUT_NOFILE_OK)
10236 goto out; 10236 goto out;
10237 exitstatus = 127;
10237 ash_msg_and_raise_error("can't open '%s'", fname); 10238 ash_msg_and_raise_error("can't open '%s'", fname);
10238 } 10239 }
10239 if (fd < 10) { 10240 if (fd < 10) {
@@ -13403,8 +13404,6 @@ int ash_main(int argc UNUSED_PARAM, char **argv)
13403 reset(); 13404 reset();
13404 13405
13405 e = exception_type; 13406 e = exception_type;
13406 if (e == EXERROR)
13407 exitstatus = 2;
13408 s = state; 13407 s = state;
13409 if (e == EXEXIT || s == 0 || iflag == 0 || shlvl) { 13408 if (e == EXEXIT || s == 0 || iflag == 0 || shlvl) {
13410 exitshell(); 13409 exitshell();