aboutsummaryrefslogtreecommitdiff
path: root/loginutils/sulogin.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-02 21:51:08 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-02 21:51:08 +0100
commitf4f6e5144b9af71dc687dc14dba4a6caf8c28361 (patch)
tree6787d6f0d48798df34ef9a829a067e5381a0f718 /loginutils/sulogin.c
parent0622416fece00507cf0ac53a2aa17ca3b1e565b2 (diff)
downloadbusybox-f4f6e5144b9af71dc687dc14dba4a6caf8c28361.tar.gz
libbb: exec_login_shell() - new function
function old new delta exec_login_shell - 12 +12 sulogin_main 247 240 -7 login_main 960 953 -7 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 12/-14) Total: -2 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r--loginutils/sulogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 127aa1de9..69d8b5ec7 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -89,5 +89,5 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
shell = pwd->pw_shell;
/* Exec login shell with no additional parameters. Never returns. */
- exec_shell(shell, 1, NULL);
+ exec_login_shell(shell);
}