Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
busybox
> busybox-1.16.1-hush.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File busybox-1.16.1-hush.patch of Package busybox (Revision 27)
Currently displaying revision
27
,
show latest
diff -urpN busybox-1.16.1/shell/hush.c busybox-1.16.1-hush/shell/hush.c --- busybox-1.16.1/shell/hush.c 2010-03-28 19:44:04.000000000 +0200 +++ busybox-1.16.1-hush/shell/hush.c 2010-05-22 06:40:06.000000000 +0200 @@ -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);