Don't bypass password prompt for root logins on insecure tty if
the root password is empty.
This commit is contained in:
parent
5dc5a09bf1
commit
f257ef4b88
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user