summaryrefslogtreecommitdiff
path: root/libbb/vfork_daemon_rexec.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-07 19:08:56 +0200
committerDenys Vlasenko2017-07-18 19:20:58 +0200
commit54916641be96b6b13e3df9b09dd5a78abefb612b (patch)
tree72b69b752000bb262f97669f6d7b91b770b8f38b /libbb/vfork_daemon_rexec.c
parent80cb8796f86754faa1569994b9355eeffe0b7759 (diff)
downloadbusybox-54916641be96b6b13e3df9b09dd5a78abefb612b.zip
busybox-54916641be96b6b13e3df9b09dd5a78abefb612b.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 'libbb/vfork_daemon_rexec.c')
-rw-r--r--libbb/vfork_daemon_rexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c
index 2695f99..576534e 100644
--- a/libbb/vfork_daemon_rexec.c
+++ b/libbb/vfork_daemon_rexec.c
@@ -180,7 +180,7 @@ int FAST_FUNC spawn_and_wait(char **argv)
* as of yet (and that should probably always stay true).
*/
/* xfunc_error_retval and applet_name are init by: */
- run_applet_no_and_exit(a, argv);
+ run_applet_no_and_exit(a, argv[0], argv);
}
# endif
}