From 5ce9987c2025ffb8eb0b57fed05744f9d94e9111 Mon Sep 17 00:00:00 2001 From: vda Date: Thu, 12 Apr 2007 12:27:32 +0000 Subject: 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 git-svn-id: svn://busybox.net/trunk/busybox@18415 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- shell/hush.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell/hush.c') diff --git a/shell/hush.c b/shell/hush.c index 1ad61e54e..9af7f5105 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); } -- cgit v1.2.3-55-g6feb