diff options
-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); |