From f5294e1f4c56afb377ada95a7757b28ad3c89086 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 14 Apr 2007 10:09:57 +0000 Subject: hush: use NOFORK applets as appropriate. Net reduction of code size. --- shell/ash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'shell/ash.c') diff --git a/shell/ash.c b/shell/ash.c index 63f039df4..90936fcc0 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -6539,10 +6539,8 @@ tryexec(char *cmd, char **argv, char **envp) a = find_applet_by_name(cmd); if (a) { if (a->noexec) { - char **c = argv; - while (*c) c++; current_applet = a; - run_current_applet_and_exit(c - argv, argv); + run_current_applet_and_exit(argv); } /* re-exec ourselves with the new arguments */ execve(CONFIG_BUSYBOX_EXEC_PATH, argv, envp); -- cgit v1.2.3