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

the root password is empty.
This commit is contained in:
davidn 1997-03-25 05:15:04 +00:00
parent 5dc5a09bf1
commit f257ef4b88

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