1e038bf99f4ac07b9d95086801faa3d9179a5843
[openwrt.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);
This page took 0.036651 seconds and 3 git commands to generate.