mirror of
https://github.com/opnsense/src.git
synced 2026-03-29 06:03:14 -04:00
Fix for logic in no-password accounts.
This commit is contained in:
parent
ac02e93687
commit
1f5367caee
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue