aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-03 08:27:43 +0100
committerRon Yorston <rmy@pobox.com>2023-04-03 08:27:43 +0100
commitef02a404777a782757a65234e037a24c64ac7c96 (patch)
tree7b8f406b03c511554f6ddd03c1c15449578aeac5
parent950b318a2a11264dd608c6ab9ee3ed3d06db4ef9 (diff)
downloadbusybox-w32-ef02a404777a782757a65234e037a24c64ac7c96.tar.gz
busybox-w32-ef02a404777a782757a65234e037a24c64ac7c96.tar.bz2
busybox-w32-ef02a404777a782757a65234e037a24c64ac7c96.zip
ash: fix POSIX build
Commit 950b318a2 (ash: Unix-style paths, shell builtins and applets) added a call to stack_add_ext_space() which should only be included when building for Microsoft Windows.
-rw-r--r--shell/ash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 521ab22af..d15a6f685 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -9088,7 +9088,9 @@ static void shellexec(char *prog, char **argv, const char *path, int idx)
9088 || (applet_no = find_applet_by_name(prog)) >= 0 9088 || (applet_no = find_applet_by_name(prog)) >= 0
9089#endif 9089#endif
9090 ) { 9090 ) {
9091#if ENABLE_PLATFORM_MINGW32
9091 prog = stack_add_ext_space(prog); 9092 prog = stack_add_ext_space(prog);
9093#endif
9092 tryexec(IF_FEATURE_SH_STANDALONE(applet_no,) prog, argv, envp); 9094 tryexec(IF_FEATURE_SH_STANDALONE(applet_no,) prog, argv, envp);
9093 if (applet_no >= 0) { 9095 if (applet_no >= 0) {
9094 /* We tried execing ourself, but it didn't work. 9096 /* We tried execing ourself, but it didn't work.