package/busybox: add upstream hush patch, bump release number
[openwrt/svn-archive/archive.git] / package / busybox / patches / 000-upstream-hush.patch
1 --- a/shell/hush.c
2 +++ b/shell/hush.c
3 @@ -6944,7 +6944,7 @@ int hush_main(int argc, char **argv)
4 /* -c 'script' (no params): prevent empty $0 */
5 G.global_argv--; /* points to argv[i] of 'script' */
6 G.global_argv[0] = argv[0];
7 - G.global_argc--;
8 + G.global_argc++;
9 } /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */
10 init_sigmasks();
11 parse_and_run_string(optarg);