aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/other/login.c b/toys/other/login.c
index c44a8879..c727bf96 100644
--- a/toys/other/login.c
+++ b/toys/other/login.c
@@ -160,8 +160,8 @@ void login_main(void)
ttyname(tty), hh ? "from" : "", hh ? TT.hostname : "");
// can't xexec here because name doesn't match argv[0]
- snprintf(toybuf, sizeof(toybuf)-1, "-%s", ss = basename_r(pwd->pw_shell));
+ snprintf(toybuf, sizeof(toybuf)-1, "-%s", basename_r(pwd->pw_shell));
toy_exec((char *[]){toybuf, 0});
- execl(ss, toybuf, NULL);
+ execl(pwd->pw_shell, toybuf, NULL);
error_exit("Failed to spawn shell");
}