diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index b7635a823..8c2098dd9 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -7717,7 +7717,7 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) char *cmd, char **argv, char ** | |||
7717 | clearenv(); | 7717 | clearenv(); |
7718 | while (*envp) | 7718 | while (*envp) |
7719 | putenv(*envp++); | 7719 | putenv(*envp++); |
7720 | run_applet_no_and_exit(applet_no, argv); | 7720 | run_applet_no_and_exit(applet_no, cmd, argv); |
7721 | } | 7721 | } |
7722 | /* re-exec ourselves with the new arguments */ | 7722 | /* re-exec ourselves with the new arguments */ |
7723 | execve(bb_busybox_exec_path, argv, envp); | 7723 | execve(bb_busybox_exec_path, argv, envp); |
diff --git a/shell/hush.c b/shell/hush.c index 4ba6b3fdd..cf6d8cd9f 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -7063,7 +7063,7 @@ static NOINLINE void pseudo_exec_argv(nommu_save_t *nommu_save, | |||
7063 | /* Do not leak open fds from opened script files etc */ | 7063 | /* Do not leak open fds from opened script files etc */ |
7064 | close_all_FILE_list(); | 7064 | close_all_FILE_list(); |
7065 | debug_printf_exec("running applet '%s'\n", argv[0]); | 7065 | debug_printf_exec("running applet '%s'\n", argv[0]); |
7066 | run_applet_no_and_exit(a, argv); | 7066 | run_applet_no_and_exit(a, argv[0], argv); |
7067 | } | 7067 | } |
7068 | # endif | 7068 | # endif |
7069 | /* Re-exec ourselves */ | 7069 | /* Re-exec ourselves */ |