diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index e21131b01..d76d3f571 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8666,7 +8666,12 @@ tryexec(IF_FEATURE_SH_STANDALONE(int applet_no,) const char *cmd, char **argv, c | |||
8666 | { | 8666 | { |
8667 | #if ENABLE_FEATURE_SH_STANDALONE | 8667 | #if ENABLE_FEATURE_SH_STANDALONE |
8668 | if (applet_no >= 0) { | 8668 | if (applet_no >= 0) { |
8669 | # if ENABLE_PLATFORM_MINGW32 | ||
8670 | /* Treat all applets as NOEXEC apart from the shell itself */ | ||
8671 | if (applet_main[applet_no] != ash_main) { | ||
8672 | # else | ||
8669 | if (APPLET_IS_NOEXEC(applet_no)) { | 8673 | if (APPLET_IS_NOEXEC(applet_no)) { |
8674 | # endif | ||
8670 | clearenv(); | 8675 | clearenv(); |
8671 | while (*envp) | 8676 | while (*envp) |
8672 | putenv(*envp++); | 8677 | putenv(*envp++); |