From b5bd70eefd40269d6503986797f3cd63f12b9ba4 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 15 Mar 2010 18:35:29 +0000 Subject: [PATCH] Work-around for fexistcase() where on Linux, at least, glob("",...) returns a single entry with a name of "", which makes no sense to me. --- src/xpdev/dirwrap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c index 6ccc896424..dbc0854dbd 100644 --- a/src/xpdev/dirwrap.c +++ b/src/xpdev/dirwrap.c @@ -536,6 +536,9 @@ BOOL DLLCALL fexistcase(char *path) int i; glob_t glb; + if(path[0]==0) + return FALSE; + if(!strchr(path,'*') && !strchr(path,'?') && fnameexist(path)) return(TRUE); -- GitLab