main: fix the case where user has "halt" as login shell. Closes 9986
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jul 2017 17:08:56 +0000 (19:08 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 18 Jul 2017 17:20:58 +0000 (19:20 +0200)
commit54916641be96b6b13e3df9b09dd5a78abefb612b
tree72b69b752000bb262f97669f6d7b91b770b8f38b
parent80cb8796f86754faa1569994b9355eeffe0b7759
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>
include/libbb.h
libbb/appletlib.c
libbb/vfork_daemon_rexec.c
shell/ash.c
shell/hush.c