dropbear: Add procd interface triggers when interface config is specified
[openwrt/openwrt.git] / package / network / services / dropbear / patches / 600-allow-blank-root-password.patch
1 --- a/svr-auth.c
2 +++ b/svr-auth.c
3 @@ -149,7 +149,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')