diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-07 19:08:56 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-18 19:20:58 +0200 |
commit | 54916641be96b6b13e3df9b09dd5a78abefb612b (patch) | |
tree | 72b69b752000bb262f97669f6d7b91b770b8f38b /include | |
parent | 80cb8796f86754faa1569994b9355eeffe0b7759 (diff) | |
download | busybox-w32-54916641be96b6b13e3df9b09dd5a78abefb612b.tar.gz busybox-w32-54916641be96b6b13e3df9b09dd5a78abefb612b.tar.bz2 busybox-w32-54916641be96b6b13e3df9b09dd5a78abefb612b.zip |
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 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 557978e66..8eccd8170 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1108,7 +1108,7 @@ int spawn_and_wait(char **argv) FAST_FUNC; | |||
1108 | int run_nofork_applet(int applet_no, char **argv) FAST_FUNC; | 1108 | int run_nofork_applet(int applet_no, char **argv) FAST_FUNC; |
1109 | #ifndef BUILD_INDIVIDUAL | 1109 | #ifndef BUILD_INDIVIDUAL |
1110 | extern int find_applet_by_name(const char *name) FAST_FUNC; | 1110 | extern int find_applet_by_name(const char *name) FAST_FUNC; |
1111 | extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC; | 1111 | extern void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC; |
1112 | #endif | 1112 | #endif |
1113 | 1113 | ||
1114 | /* Helpers for daemonization. | 1114 | /* Helpers for daemonization. |