From 2937618dd9af7f6d0ff616288463f3da39f7291b Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 24 Nov 2009 22:13:19 +0000 Subject: prevent busybox's ping6 from crashing (#4604) SVN-Revision: 18528 --- package/busybox/patches/500-ping6_crash.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/busybox/patches/500-ping6_crash.patch (limited to 'package/busybox/patches') diff --git a/package/busybox/patches/500-ping6_crash.patch b/package/busybox/patches/500-ping6_crash.patch new file mode 100644 index 0000000000..8412a18ac1 --- /dev/null +++ b/package/busybox/patches/500-ping6_crash.patch @@ -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); -- cgit v1.2.3