From e15e9fc9a7d3fe53475695140509234e8baa29c6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 20 Sep 2005 18:32:23 +0000 Subject: * spawn.cc (av::fixup): Just blindly run any file if it has a .bat or .cmd extension. --- winsup/cygwin/spawn.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/spawn.cc') 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) { -- cgit v1.2.3