* spawn.cc (av::fixup): Check for .bat and friends specifically now since these
extensions are no longer automatically detected.
This commit is contained in:
parent
ec92c4d6ab
commit
0a5f931a43
|
@ -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>
|
2006-02-19 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* exceptions.cc (stackdump): Avoid dumping more than once.
|
* exceptions.cc (stackdump): Avoid dumping more than once.
|
||||||
|
|
|
@ -1058,9 +1058,13 @@ spawnvpe (int mode, const char *file, const char * const *argv,
|
||||||
int
|
int
|
||||||
av::fixup (const char *prog_arg, path_conv& real_path, const char *ext)
|
av::fixup (const char *prog_arg, path_conv& real_path, const char *ext)
|
||||||
{
|
{
|
||||||
|
const char *p;
|
||||||
bool exeext = strcasematch (ext, ".exe");
|
bool exeext = strcasematch (ext, ".exe");
|
||||||
if (exeext && real_path.iscygexec () || strcasematch (ext, ".bat")
|
if (exeext && real_path.iscygexec () || strcasematch (ext, ".bat"))
|
||||||
|| strcasematch (ext, ".cmd"))
|
return 0;
|
||||||
|
if (!*ext && ((p = ext - 4) > (char *) real_path)
|
||||||
|
&& (strcasematch (p, ".bat") || strcasematch (p, ".cmd")
|
||||||
|
|| strcasematch (p, ".btm"))
|
||||||
return 0;
|
return 0;
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue