* cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
This commit is contained in:
@@ -218,7 +218,14 @@ find_on_path (char *file, char *default_extension,
|
||||
}
|
||||
|
||||
if (strchr (file, ':') || strchr (file, '\\') || strchr (file, '/'))
|
||||
return cygpath (file, NULL);
|
||||
{
|
||||
char *fn = cygpath (file, NULL);
|
||||
if (access (fn, F_OK) == 0)
|
||||
return fn;
|
||||
strcpy (rv, fn);
|
||||
strcat (rv, default_extension);
|
||||
return access (rv, F_OK) == 0 ? rv : fn;
|
||||
}
|
||||
|
||||
if (strchr (file, '.'))
|
||||
default_extension = (char *) "";
|
||||
|
Reference in New Issue
Block a user