aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--shell/hush.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 04dda0734..4a97293cc 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -10361,6 +10361,9 @@ int hush_main(int argc, char **argv)
10361 _exit(0); 10361 _exit(0);
10362 } 10362 }
10363 G.argv0_for_re_execing = argv[0]; 10363 G.argv0_for_re_execing = argv[0];
10364 if (G.argv0_for_re_execing[0] == '-')
10365 /* reexeced hush should never be a login shell */
10366 G.argv0_for_re_execing++;
10364#endif 10367#endif
10365#if ENABLE_HUSH_TRAP 10368#if ENABLE_HUSH_TRAP
10366# if ENABLE_HUSH_FUNCTIONS 10369# if ENABLE_HUSH_FUNCTIONS