diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-10 04:19:49 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-10 04:19:49 -0400 |
commit | af1661e24a257f53bb8d9e9a46ae1e010ab4ca28 (patch) | |
tree | d232511bd4d7a5dbee4d73f7450deca3ec8c116c | |
parent | 35cc0ad861e12382d22bce773db664e0f59e7648 (diff) |
usr: login: Only rely on default shell for now
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | usr.bin/login/login.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); |