aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/process.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/process.c b/win32/process.c
index 65c65b0d0..62be6e0cc 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -368,7 +368,9 @@ mingw_spawnvp(int mode, const char *cmd, char *const *argv)
368 } 368 }
369 if (unix_path(cmd)) 369 if (unix_path(cmd))
370 cmd = bb_basename(cmd); 370 cmd = bb_basename(cmd);
371 } else if ((path = find_first_executable(cmd)) != NULL) { 371 }
372
373 if (!has_path(cmd) && (path = find_first_executable(cmd)) != NULL) {
372 ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0); 374 ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0);
373 free(path); 375 free(path);
374 return ret; 376 return ret;