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-07 19:08:56 +0200 |
commit | 69a5ec9dccfd183cdf6bee7b994336670755cd47 (patch) | |
tree | f6fa85ffa67173d5d78a64836b47accab94fc36b /include | |
parent | b0c0b6d5ba4b15069a1e4ce6750c0ef2e93579e1 (diff) |
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 1c9de3af0..0317c7d6a 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1117,7 +1117,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. |