summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-09-20 18:32:23 +0000
committerChristopher Faylor <me@cgf.cx>2005-09-20 18:32:23 +0000
commite15e9fc9a7d3fe53475695140509234e8baa29c6 (patch)
tree9d8025e0eaf6be9b625adf50ceed0c9bf59c414b /winsup/cygwin/spawn.cc
parentc2105cb94db1aa8a6c7a0a16302500afe7e56a51 (diff)
downloadcygnal-e15e9fc9a7d3fe53475695140509234e8baa29c6.tar.gz
cygnal-e15e9fc9a7d3fe53475695140509234e8baa29c6.tar.bz2
cygnal-e15e9fc9a7d3fe53475695140509234e8baa29c6.zip
* spawn.cc (av::fixup): Just blindly run any file if it has a .bat or .cmd
extension.
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)
{