Skip to content
Snippets Groups Projects
Commit 8bf4c45d authored by deuce's avatar deuce
Browse files

Fix behaviour of fexistcase() on multiple matches.

parent b1f40ec9
No related branches found
No related tags found
No related merge requests found
......@@ -478,15 +478,7 @@ BOOL DLLCALL fexistcase(char *path)
return(FALSE);
if(glb.gl_pathc>0) {
/**********************************************************
* If multiple matches are found, return TRUE only if one *
* EXACTLY matches path or all but one are directories *
**********************************************************/
for(i=0;i<glb.gl_pathc;i++) {
if(strcmp(path,glb.gl_pathv[i])==0) {
globfree(&glb);
return TRUE;
}
if(*lastchar(glb.gl_pathv[i]) != '/')
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment