diff options
author | davidn <davidn@FreeBSD.org> | 1997-03-27 10:09:09 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-03-27 10:09:09 +0000 |
commit | 57689e09a5e31b0522665d3e18493d7c4b6dbe68 (patch) | |
tree | 0249c11ea1d02ba030ca4eaf03b9a1ef9a131e33 /usr.bin/login/login.c | |
parent | 03c5e9fbba5ce2557b465cab78ae60b560317e14 (diff) | |
download | FreeBSD-src-57689e09a5e31b0522665d3e18493d7c4b6dbe68.zip FreeBSD-src-57689e09a5e31b0522665d3e18493d7c4b6dbe68.tar.gz |
Fix for logic in no-password accounts.
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r-- | usr.bin/login/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 62f26ed..3a4f1da 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -350,7 +350,7 @@ main(argc, argv) /* already authenticated */ break; } else if (pwd->pw_passwd[0] == '\0') { - if (rootlogin && !rootok) { + if (!rootlogin || rootok) { /* pretend password okay */ rval = 0; goto ttycheck; |