summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 503fad148..df13d3b1b 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -1024,7 +1024,8 @@ int
av::fixup (child_info_types chtype, const char *prog_arg, path_conv& real_path, const char *ext)
{
bool exeext = strcasematch (ext, ".exe");
- if (exeext && real_path.iscygexec ())
+ if (exeext && real_path.iscygexec () || strcasematch (ext, ".bat")
+ || strcasematch (ext, ".cmd"))
return 0;
while (1)
{