summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-03-27 10:09:09 +0000
committerdavidn <davidn@FreeBSD.org>1997-03-27 10:09:09 +0000
commit57689e09a5e31b0522665d3e18493d7c4b6dbe68 (patch)
tree0249c11ea1d02ba030ca4eaf03b9a1ef9a131e33 /usr.bin/login
parent03c5e9fbba5ce2557b465cab78ae60b560317e14 (diff)
downloadFreeBSD-src-57689e09a5e31b0522665d3e18493d7c4b6dbe68.zip
FreeBSD-src-57689e09a5e31b0522665d3e18493d7c4b6dbe68.tar.gz
Fix for logic in no-password accounts.
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c2
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;
OpenPOWER on IntegriCloud