Fix for logic in no-password accounts.

This commit is contained in:
David Nugent 1997-03-27 10:09:09 +00:00
parent ac02e93687
commit 1f5367caee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24321

View File

@ -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;