aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
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)
6539 a = find_applet_by_name(cmd); 6539 a = find_applet_by_name(cmd);
6540 if (a) { 6540 if (a) {
6541 if (a->noexec) { 6541 if (a->noexec) {
6542 char **c = argv;
6543 while (*c) c++;
6544 current_applet = a; 6542 current_applet = a;
6545 run_current_applet_and_exit(c - argv, argv); 6543 run_current_applet_and_exit(argv);
6546 } 6544 }
6547 /* re-exec ourselves with the new arguments */ 6545 /* re-exec ourselves with the new arguments */
6548 execve(CONFIG_BUSYBOX_EXEC_PATH, argv, envp); 6546 execve(CONFIG_BUSYBOX_EXEC_PATH, argv, envp);