1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 12:36:15 +02:00
openwrt-xburst/package/busybox/patches/000-upstream-hush.patch
nico 8fefd3e29a package/busybox: add upstream hush patch, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-23 14:00:43 +00:00

12 lines
396 B
Diff

--- 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);