backport r18528
authorFlorian Fainelli <florian@openwrt.org>
Tue, 24 Nov 2009 22:17:35 +0000 (22:17 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 24 Nov 2009 22:17:35 +0000 (22:17 +0000)
SVN-Revision: 18529

package/busybox/Makefile
package/busybox/patches/500-ping6_crash.patch [new file with mode: 0644]

index ad18b2002c9e70b14e144232386623192df24a01..203c00cf73c1972f2e413a068a1756a2d466c71b 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=busybox
 PKG_VERSION:=1.11.2
-PKG_RELEASE:=2.1
+PKG_RELEASE:=2.2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.busybox.net/downloads \
diff --git a/package/busybox/patches/500-ping6_crash.patch b/package/busybox/patches/500-ping6_crash.patch
new file mode 100644 (file)
index 0000000..8412a18
--- /dev/null
@@ -0,0 +1,12 @@
+Index: busybox-1.15.2/networking/ping.c
+===================================================================
+--- busybox-1.15.2.orig/networking/ping.c      2009-11-24 22:57:29.000000000 +0100
++++ busybox-1.15.2/networking/ping.c   2009-11-24 22:58:58.000000000 +0100
+@@ -769,6 +769,7 @@
+ int ping6_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+ int ping6_main(int argc UNUSED_PARAM, char **argv)
+ {
++      argv[-1] = argv[0];
+       argv[0] = (char*)"-6";
+       return ping_main(0 /* argc+1 - but it's unused anyway */,
+                       argv - 1);