summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-03-25 05:15:04 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-03-25 05:15:04 +0000
commit4a028a883dbeea75d79c68dd968faca60d76fefc (patch)
tree871d050077b455c5b377c32d024347e35fef7368
parent476b25e22efdb7d36f9bb43b10425d74b7e2d9e7 (diff)
Notes
-rw-r--r--usr.bin/login/login.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 747643159c0e..62f26edda324 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -350,9 +350,11 @@ main(argc, argv)
/* already authenticated */
break;
} else if (pwd->pw_passwd[0] == '\0') {
- /* pretend password okay */
- rval = 0;
- goto ttycheck;
+ if (rootlogin && !rootok) {
+ /* pretend password okay */
+ rval = 0;
+ goto ttycheck;
+ }
}
}