aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.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/msh.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/msh.c')
-rw-r--r--shell/msh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 4d1e84cf0..861abe234 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -3065,7 +3065,6 @@ static const char *rexecve(char *c, char **v, char **envp)
3065 char *name = c; 3065 char *name = c;
3066 3066
3067 if (ENABLE_FEATURE_SH_STANDALONE) { 3067 if (ENABLE_FEATURE_SH_STANDALONE) {
3068 optind = 1;
3069 if (find_applet_by_name(name)) { 3068 if (find_applet_by_name(name)) {
3070 /* We have to exec here since we vforked. Running 3069 /* We have to exec here since we vforked. Running
3071 * run_applet_and_exit() won't work and bad things 3070 * run_applet_and_exit() won't work and bad things