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>
Fri, 7 Jul 2017 17:08:56 +0000 (19:08 +0200)
commit69a5ec9dccfd183cdf6bee7b994336670755cd47
treef6fa85ffa67173d5d78a64836b47accab94fc36b
parentb0c0b6d5ba4b15069a1e4ce6750c0ef2e93579e1
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