dropbear: bump to 2022.82
[openwrt/staging/jow.git] / package / network / services / dropbear / patches / 600-allow-blank-root-password.patch
1 --- a/svr-auth.c
2 +++ b/svr-auth.c
3 @@ -124,7 +124,7 @@ void recv_msg_userauth_request() {
4 AUTH_METHOD_NONE_LEN) == 0) {
5 TRACE(("recv_msg_userauth_request: 'none' request"))
6 if (valid_user
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')