aboutsummaryrefslogtreecommitdiffstats
path: root/package/dropbear/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-03-29 21:04:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-03-29 21:04:05 +0000
commit61bd927d24ddcdeb3bb057b86554cc6b34494477 (patch)
treea5806d638555c795c0712fd63ec7f2d9713f2e99 /package/dropbear/patches
parent079a6e99c982cc0c0624b0d7e07a19c9692a7cbe (diff)
downloadupstream-61bd927d24ddcdeb3bb057b86554cc6b34494477.tar.gz
upstream-61bd927d24ddcdeb3bb057b86554cc6b34494477.tar.bz2
upstream-61bd927d24ddcdeb3bb057b86554cc6b34494477.zip
[package] dropbear: update to 0.52 (#4635)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15074 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dropbear/patches')
-rw-r--r--package/dropbear/patches/100-pubkey_path.patch18
-rw-r--r--package/dropbear/patches/110-change_user.patch8
-rw-r--r--package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch10
-rw-r--r--package/dropbear/patches/150-dbconvert_standalone.patch6
4 files changed, 21 insertions, 21 deletions
diff --git a/package/dropbear/patches/100-pubkey_path.patch b/package/dropbear/patches/100-pubkey_path.patch
index ff6673488b..9346cc60f4 100644
--- a/package/dropbear/patches/100-pubkey_path.patch
+++ b/package/dropbear/patches/100-pubkey_path.patch
@@ -1,8 +1,8 @@
-Index: dropbear-0.51/svr-authpubkey.c
+Index: dropbear-0.52/svr-authpubkey.c
===================================================================
---- dropbear-0.51.orig/svr-authpubkey.c 2008-04-22 17:29:49.000000000 -0700
-+++ dropbear-0.51/svr-authpubkey.c 2008-04-22 17:29:49.000000000 -0700
-@@ -176,6 +176,8 @@
+--- dropbear-0.52.orig/svr-authpubkey.c 2008-04-22 17:29:49.000000000 -0700
++++ dropbear-0.52/svr-authpubkey.c 2008-04-22 17:29:49.000000000 -0700
+@@ -209,6 +209,8 @@
goto out;
}
@@ -11,7 +11,7 @@ Index: dropbear-0.51/svr-authpubkey.c
/* we don't need to check pw and pw_dir for validity, since
* its been done in checkpubkeyperms. */
len = strlen(ses.authstate.pw_dir);
-@@ -187,6 +189,9 @@
+@@ -220,6 +222,9 @@
/* open the file */
authfile = fopen(filename, "r");
@@ -21,7 +21,7 @@ Index: dropbear-0.51/svr-authpubkey.c
if (authfile == NULL) {
goto out;
}
-@@ -274,6 +279,8 @@
+@@ -372,6 +377,8 @@
goto out;
}
@@ -30,7 +30,7 @@ Index: dropbear-0.51/svr-authpubkey.c
/* allocate max required pathname storage,
* = path + "/.ssh/authorized_keys" + '\0' = pathlen + 22 */
filename = m_malloc(len + 22);
-@@ -295,6 +302,14 @@
+@@ -381,6 +388,14 @@
if (checkfileperm(filename) != DROPBEAR_SUCCESS) {
goto out;
}
@@ -43,5 +43,5 @@ Index: dropbear-0.51/svr-authpubkey.c
+ }
+ }
- /* file looks ok, return success */
- ret = DROPBEAR_SUCCESS;
+ /* check ~/.ssh */
+ strncat(filename, "/.ssh", 5); /* strlen("/.ssh") == 5 */
diff --git a/package/dropbear/patches/110-change_user.patch b/package/dropbear/patches/110-change_user.patch
index 4a0cdc5e75..eb1db52db0 100644
--- a/package/dropbear/patches/110-change_user.patch
+++ b/package/dropbear/patches/110-change_user.patch
@@ -1,8 +1,8 @@
-Index: dropbear-0.51/svr-chansession.c
+Index: dropbear-0.52/svr-chansession.c
===================================================================
---- dropbear-0.51.orig/svr-chansession.c 2008-04-22 17:29:49.000000000 -0700
-+++ dropbear-0.51/svr-chansession.c 2008-04-22 17:29:49.000000000 -0700
-@@ -912,12 +912,12 @@
+--- dropbear-0.52.orig/svr-chansession.c 2008-04-22 17:29:49.000000000 -0700
++++ dropbear-0.52/svr-chansession.c 2008-04-22 17:29:49.000000000 -0700
+@@ -852,12 +852,12 @@
/* We can only change uid/gid as root ... */
if (getuid() == 0) {
diff --git a/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch b/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
index 7f8b1816e9..17ea4e7558 100644
--- a/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
+++ b/package/dropbear/patches/130-ssh_ignore_o_and_x_args.patch
@@ -1,8 +1,8 @@
-Index: dropbear-0.51/cli-runopts.c
+Index: dropbear-0.52/cli-runopts.c
===================================================================
---- dropbear-0.51.orig/cli-runopts.c 2008-04-22 17:29:49.000000000 -0700
-+++ dropbear-0.51/cli-runopts.c 2008-04-22 17:29:50.000000000 -0700
-@@ -220,6 +220,10 @@
+--- dropbear-0.52.orig/cli-runopts.c 2008-04-22 17:29:49.000000000 -0700
++++ dropbear-0.52/cli-runopts.c 2008-04-22 17:29:50.000000000 -0700
+@@ -271,6 +271,10 @@
debug_trace = 1;
break;
#endif
@@ -13,7 +13,7 @@ Index: dropbear-0.51/cli-runopts.c
case 'F':
case 'e':
case 'c':
-@@ -231,7 +235,6 @@
+@@ -282,7 +286,6 @@
#ifndef ENABLE_CLI_LOCALTCPFWD
case 'L':
#endif
diff --git a/package/dropbear/patches/150-dbconvert_standalone.patch b/package/dropbear/patches/150-dbconvert_standalone.patch
index 543902ef5a..4b46ddfdbc 100644
--- a/package/dropbear/patches/150-dbconvert_standalone.patch
+++ b/package/dropbear/patches/150-dbconvert_standalone.patch
@@ -1,7 +1,7 @@
-Index: dropbear-0.51/options.h
+Index: dropbear-0.52/options.h
===================================================================
---- dropbear-0.51.orig/options.h 2008-04-22 17:29:49.000000000 -0700
-+++ dropbear-0.51/options.h 2008-04-22 17:29:50.000000000 -0700
+--- dropbear-0.52.orig/options.h 2008-04-22 17:29:49.000000000 -0700
++++ dropbear-0.52/options.h 2008-04-22 17:29:50.000000000 -0700
@@ -5,6 +5,11 @@
#ifndef _OPTIONS_H_
#define _OPTIONS_H_