Don't bypass password prompt for root logins on insecure tty if

the root password is empty.
This commit is contained in:
David Nugent 1997-03-25 05:15:04 +00:00
parent 476b25e22e
commit 4a028a883d

View File

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