summaryrefslogtreecommitdiff
path: root/package/openssh/openssh.002-SUSv-legacy.patch
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 22:36:04 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 22:36:04 +0000
commit255e7b5d91a683ba2b6c62bbdc7ee375e96faecf (patch)
tree7d0a77b4bf8cd92796a3c60b20a7a85d207baf4d /package/openssh/openssh.002-SUSv-legacy.patch
parent66285ef7d8a1cd889891677bc58b11beeb21188b (diff)
- bump version to 4.6p1
- will need some program_invocation_name touchup, from the looks. Sounds like Ulf is supporting this: http://buildroot.uclibc.org/lists/buildroot/2007-August/004651.html Ulf> Go ahead, since it is permanently broken. It was for ARM for the most part. Some others did work, fwiw.
Diffstat (limited to 'package/openssh/openssh.002-SUSv-legacy.patch')
-rw-r--r--package/openssh/openssh.002-SUSv-legacy.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/openssh/openssh.002-SUSv-legacy.patch b/package/openssh/openssh.002-SUSv-legacy.patch
new file mode 100644
index 000000000..6aece09f1
--- /dev/null
+++ b/package/openssh/openssh.002-SUSv-legacy.patch
@@ -0,0 +1,21 @@
+diff -rdup openssh-4.6p1.oorig/openbsd-compat/port-tun.c openssh-4.6p1/openbsd-compat/port-tun.c
+--- openssh-4.6p1.oorig/openbsd-compat/port-tun.c 2006-09-02 07:32:40.000000000 +0200
++++ openssh-4.6p1/openbsd-compat/port-tun.c 2007-06-28 16:08:42.000000000 +0200
+@@ -66,7 +66,7 @@ sys_tun_open(int tun, int mode)
+ return (-1);
+ }
+
+- bzero(&ifr, sizeof(ifr));
++ memset(&ifr, 0, sizeof(ifr));
+
+ if (mode == SSH_TUNMODE_ETHERNET) {
+ ifr.ifr_flags = IFF_TAP;
+@@ -212,7 +212,7 @@ sys_tun_infilter(struct Channel *c, char
+ if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af)))
+ return (-1);
+ ptr = (char *)&rbuf[0];
+- bcopy(buf, ptr + sizeof(u_int32_t), len);
++ memmove(ptr + sizeof(u_int32_t), buf, len);
+ len += sizeof(u_int32_t);
+ af = (u_int32_t *)ptr;
+