a1099edf32
- drop patches applied upstream: * 010-runtime-maxauthtries.patch * 020-Wait-to-fail-invalid-usernames.patch * 150-dbconvert_standalone.patch * 610-skip-default-keys-in-custom-runs.patch - refresh patches - move OpenWrt configuration from patch to Build/Configure recipe, thus drop patch 120-openwrt_options.patch Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
12 lines
441 B
Diff
12 lines
441 B
Diff
--- a/svr-auth.c
|
|
+++ b/svr-auth.c
|
|
@@ -125,7 +125,7 @@ void recv_msg_userauth_request() {
|
|
AUTH_METHOD_NONE_LEN) == 0) {
|
|
TRACE(("recv_msg_userauth_request: 'none' request"))
|
|
if (valid_user
|
|
- && svr_opts.allowblankpass
|
|
+ && (svr_opts.allowblankpass || !strcmp(ses.authstate.pw_name, "root"))
|
|
&& !svr_opts.noauthpass
|
|
&& !(svr_opts.norootpass && ses.authstate.pw_uid == 0)
|
|
&& ses.authstate.pw_passwd[0] == '\0')
|