aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/000-upstream-hush.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2010-05-23 14:00:43 +0000
committerNicolas Thill <nico@openwrt.org>2010-05-23 14:00:43 +0000
commit3d1270fab4fcb28f883748c9b4acf087317a142e (patch)
treefd52c4fec27d291cddf59dfa715d0c7e1c17e78b /package/busybox/patches/000-upstream-hush.patch
parent110826dc6c0484a788c3aabe9fe0fc0794b01041 (diff)
downloadupstream-3d1270fab4fcb28f883748c9b4acf087317a142e.tar.gz
upstream-3d1270fab4fcb28f883748c9b4acf087317a142e.tar.bz2
upstream-3d1270fab4fcb28f883748c9b4acf087317a142e.zip
package/busybox: add upstream hush patch, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21545 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/000-upstream-hush.patch')
-rw-r--r--package/busybox/patches/000-upstream-hush.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/patches/000-upstream-hush.patch b/package/busybox/patches/000-upstream-hush.patch
new file mode 100644
index 0000000000..1e038bf99f
--- /dev/null
+++ b/package/busybox/patches/000-upstream-hush.patch
@@ -0,0 +1,11 @@
+--- a/shell/hush.c
++++ b/shell/hush.c
+@@ -6944,7 +6944,7 @@ int hush_main(int argc, char **argv)
+ /* -c 'script' (no params): prevent empty $0 */
+ G.global_argv--; /* points to argv[i] of 'script' */
+ G.global_argv[0] = argv[0];
+- G.global_argc--;
++ G.global_argc++;
+ } /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */
+ init_sigmasks();
+ parse_and_run_string(optarg);