summaryrefslogtreecommitdiffhomepage
path: root/shell/lash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-14 10:09:57 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-14 10:09:57 +0000
commitf5294e1f4c56afb377ada95a7757b28ad3c89086 (patch)
tree95a0c3632c8c2b20fa6b60f1e1a33e4fc4b24d4f /shell/lash.c
parent16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (diff)
hush: use NOFORK applets as appropriate. Net reduction of code size.
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell/lash.c b/shell/lash.c
index c74684bf7..6fe2ddc76 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1158,12 +1158,7 @@ static int pseudo_exec(struct child_prog *child)
* /bin/foo is a symlink to busybox.
*/
if (ENABLE_FEATURE_SH_STANDALONE) {
- char **argv_l = child->argv;
- int argc_l;
-
- for (argc_l = 0; *argv_l; argv_l++, argc_l++)
- continue;
- run_applet_and_exit(child->argv[0], argc_l, child->argv);
+ run_applet_and_exit(child->argv[0], child->argv);
}
execvp(child->argv[0], child->argv);