Mercurial > hg > control-images
comparison images/static-tools/patches/dropbear-fixnopasswd.patch @ 11:a47a5504bbd5
Dropbear should allow you to login via public/private key even when user has not password.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 29 Oct 2011 12:41:37 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:49b4a99dcf03 | 11:a47a5504bbd5 |
---|---|
1 No password is no reason to prevent key-based logins. | |
2 | |
3 diff -ru dropbear.new/svr-auth.c dropbear/svr-auth.c | |
4 --- dropbear.new/svr-auth.c 2011-10-11 09:50:22.047129393 -0500 | |
5 +++ dropbear/svr-auth.c 2011-03-02 07:23:36.000000000 -0600 | |
6 @@ -249,7 +249,7 @@ | |
7 return DROPBEAR_FAILURE; | |
8 } | |
9 | |
10 - /* check for an empty password */ | |
11 + /* check for an empty password | |
12 if (ses.authstate.pw_passwd[0] == '\0') { | |
13 TRACE(("leave checkusername: empty pword")) | |
14 dropbear_log(LOG_WARNING, "User '%s' has blank password, rejected", | |
15 @@ -257,6 +257,7 @@ | |
16 send_msg_userauth_failure(0, 1); | |
17 return DROPBEAR_FAILURE; | |
18 } | |
19 +*/ | |
20 | |
21 TRACE(("shell is %s", ses.authstate.pw_shell)) | |
22 |