aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 12:27:32 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 12:27:32 +0000
commit5ce9987c2025ffb8eb0b57fed05744f9d94e9111 (patch)
tree4f3efe440c2db9df016a1aa3dc8d36eb89eb7a2a /shell/hush.c
parent9befed76909bfe7cbda8fdf154c1a10a12e88006 (diff)
downloadbusybox-w32-5ce9987c2025ffb8eb0b57fed05744f9d94e9111.tar.gz
busybox-w32-5ce9987c2025ffb8eb0b57fed05744f9d94e9111.tar.bz2
busybox-w32-5ce9987c2025ffb8eb0b57fed05744f9d94e9111.zip
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
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c3
1 files changed, 1 insertions, 2 deletions
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)
1119 1119
1120 /* Count argc for use in a second... */ 1120 /* Count argc for use in a second... */
1121 for (argc_l = 0; *argv_l; argv_l++, argc_l++) 1121 for (argc_l = 0; *argv_l; argv_l++, argc_l++)
1122 /**/; 1122 continue;
1123 optind = 1;
1124 debug_printf("running applet %s\n", name); 1123 debug_printf("running applet %s\n", name);
1125 run_applet_and_exit(name, argc_l, child->argv); 1124 run_applet_and_exit(name, argc_l, child->argv);
1126 } 1125 }