3 @@ -124,7 +124,7 @@ void recv_msg_userauth_request() {
4 AUTH_METHOD_NONE_LEN) == 0) {
5 TRACE(("recv_msg_userauth_request: 'none' request"))
7 - && svr_opts.allowblankpass
8 + && (svr_opts.allowblankpass || !strcmp(ses.authstate.pw_name, "root"))
9 && !svr_opts.noauthpass
10 && !(svr_opts.norootpass && ses.authstate.pw_uid == 0)
11 && ses.authstate.pw_passwd[0] == '\0')