* spawn.cc (av::fixup): Check for .bat and friends specifically now since these
extensions are no longer automatically detected.
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
| @@ -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) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user