Fix for logic in no-password accounts.
This commit is contained in:
parent
ac02e93687
commit
1f5367caee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24321
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user