diff options
author | Denis Vlasenko | 2007-04-12 12:27:32 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-12 12:27:32 +0000 |
commit | 831a20f51246cd8d54a246ba7e239a062eeb002c (patch) | |
tree | 4f3efe440c2db9df016a1aa3dc8d36eb89eb7a2a /shell/hush.c | |
parent | c98c31783c062377d14b80735b056cf4c53c66e9 (diff) | |
download | busybox-831a20f51246cd8d54a246ba7e239a062eeb002c.zip busybox-831a20f51246cd8d54a246ba7e239a062eeb002c.tar.gz |
pass a copy of argv[i] to NOFORK applets (they may permute it etc).
set/save/restore more shared global variables whan call one applet from another
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index 1ad61e5..9af7f51 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1119,8 +1119,7 @@ static void pseudo_exec(struct child_prog *child) /* Count argc for use in a second... */ for (argc_l = 0; *argv_l; argv_l++, argc_l++) - /**/; - optind = 1; + continue; debug_printf("running applet %s\n", name); run_applet_and_exit(name, argc_l, child->argv); } |