From af1661e24a257f53bb8d9e9a46ae1e010ab4ca28 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 10 Jul 2025 04:19:49 -0400 Subject: usr: login: Only rely on default shell for now Signed-off-by: Ian Moffett --- usr.bin/login/login.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 2182928..5938d19 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -94,7 +94,7 @@ check_uid(const char *uid) static int check_user(char *alias, char *hash, char *entry) { - const char *p, *shell; + const char *p; char *shell_argv[] = { DEFAULT_SHELL, NULL }; char *envp[] = { NULL }; size_t row = 0; @@ -148,10 +148,6 @@ check_user(char *alias, char *hash, char *entry) printf("failed to set uid\n"); return -1; } - if (shell == NULL) { - printf("failed to read shell path\n"); - return -1; - } if (retval == 0) { setuid(uid); -- cgit v1.2.3