* spawn.cc (av::fixup): Check for .bat and friends specifically now since these

extensions are no longer automatically detected.
This commit is contained in:
Christopher Faylor 2006-02-20 16:15:51 +00:00
parent ec92c4d6ab
commit 0a5f931a43
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-02-20 Christopher Faylor <cgf@timesys.com>
* spawn.cc (av::fixup): Check for .bat and friends specifically now
since these extensions are no longer automatically detected.
2006-02-19 Christopher Faylor <cgf@timesys.com>
* exceptions.cc (stackdump): Avoid dumping more than once.

View File

@ -1058,9 +1058,13 @@ spawnvpe (int mode, const char *file, const char * const *argv,
int
av::fixup (const char *prog_arg, path_conv& real_path, const char *ext)
{
const char *p;
bool exeext = strcasematch (ext, ".exe");
if (exeext && real_path.iscygexec () || strcasematch (ext, ".bat")
|| strcasematch (ext, ".cmd"))
if (exeext && real_path.iscygexec () || strcasematch (ext, ".bat"))
return 0;
if (!*ext && ((p = ext - 4) > (char *) real_path)
&& (strcasematch (p, ".bat") || strcasematch (p, ".cmd")
|| strcasematch (p, ".btm"))
return 0;
while (1)
{