diff options
author | Denys Vlasenko | 2017-07-07 19:08:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-18 19:20:58 +0200 |
commit | 54916641be96b6b13e3df9b09dd5a78abefb612b (patch) | |
tree | 72b69b752000bb262f97669f6d7b91b770b8f38b /include | |
parent | 80cb8796f86754faa1569994b9355eeffe0b7759 (diff) | |
download | busybox-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 '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 557978e..8eccd81 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1108,7 +1108,7 @@ int spawn_and_wait(char **argv) FAST_FUNC; int run_nofork_applet(int applet_no, char **argv) FAST_FUNC; #ifndef BUILD_INDIVIDUAL extern int find_applet_by_name(const char *name) FAST_FUNC; -extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC; +extern void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC; #endif /* Helpers for daemonization. |