diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-25 22:16:37 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-07-25 22:16:37 +0200 |
commit | 82bab389a4f5e871dae68ff376fb74537b1e75b6 (patch) | |
tree | 00bb643162853e282e04eeae6c1f06e232216027 /package/dropbear/patches/patch-svr-authpubkey_c | |
parent | f94dbc199e0abcdd3b8cc9d9d7226d8a1a6b47e1 (diff) | |
parent | dba433e831fb3fe7ea5e6ced99c92643b8e7f9e8 (diff) |
Merge branch 'master' of gogs.waldemar-brodkorb.de:linux/openadk
Diffstat (limited to 'package/dropbear/patches/patch-svr-authpubkey_c')
-rw-r--r-- | package/dropbear/patches/patch-svr-authpubkey_c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/package/dropbear/patches/patch-svr-authpubkey_c b/package/dropbear/patches/patch-svr-authpubkey_c index fe63792f7..0de885cfb 100644 --- a/package/dropbear/patches/patch-svr-authpubkey_c +++ b/package/dropbear/patches/patch-svr-authpubkey_c @@ -1,6 +1,6 @@ --- dropbear-2017.75.orig/svr-authpubkey.c 2017-05-18 16:47:02.000000000 +0200 -+++ dropbear-2017.75/svr-authpubkey.c 2017-05-24 00:12:02.175883130 +0200 -@@ -220,24 +220,31 @@ static int checkpubkey(char* algo, unsig ++++ dropbear-2017.75/svr-authpubkey.c 2017-07-06 19:45:36.765143131 +0200 +@@ -220,24 +220,33 @@ static int checkpubkey(char* algo, unsig goto out; } @@ -43,12 +43,14 @@ + authfile = fopen(filename, "r"); + + } else { ++ origuid = getuid(); ++ origgid = getgid(); + authfile = fopen("/etc/dropbear/authorized_keys","r"); + } if ((seteuid(origuid)) < 0 || (setegid(origgid)) < 0) { -@@ -396,26 +403,39 @@ static int checkpubkeyperms() { +@@ -396,26 +405,39 @@ static int checkpubkeyperms() { goto out; } |