diff options
author | Denys Vlasenko | 2017-07-07 19:08:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-07 19:08:56 +0200 |
commit | 69a5ec9dccfd183cdf6bee7b994336670755cd47 (patch) | |
tree | f6fa85ffa67173d5d78a64836b47accab94fc36b /shell/hush.c | |
parent | b0c0b6d5ba4b15069a1e4ce6750c0ef2e93579e1 (diff) | |
download | busybox-69a5ec9dccfd183cdf6bee7b994336670755cd47.zip busybox-69a5ec9dccfd183cdf6bee7b994336670755cd47.tar.gz |
main: fix the case where user has "halt" as login shell. Closes 9986
halt::0:0::/:/sbin/halt
function old new delta
run_applet_and_exit 748 751 +3
run_applet_no_and_exit 467 459 -8
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index 4ba6b3f..cf6d8cd 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -7063,7 +7063,7 @@ static NOINLINE void pseudo_exec_argv(nommu_save_t *nommu_save, /* Do not leak open fds from opened script files etc */ close_all_FILE_list(); debug_printf_exec("running applet '%s'\n", argv[0]); - run_applet_no_and_exit(a, argv); + run_applet_no_and_exit(a, argv[0], argv); } # endif /* Re-exec ourselves */ |