From c82eff12b58be6dca245c5995f31e6ad37a97176 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows 11)" <rob@synchro.net>
Date: Sat, 21 Dec 2024 22:57:16 -0800
Subject: [PATCH] Comment out access() call in Windows version of getfilecase()

I'm hoping this might help resolve instances where fexistcase() says a file
does not exist, but a subsequent call to fexist() says it does.
---
 src/xpdev/dirwrap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c
index e203c7636f..a999c9e085 100644
--- a/src/xpdev/dirwrap.c
+++ b/src/xpdev/dirwrap.c
@@ -587,9 +587,10 @@ static bool getfilecase(char *path, bool dir)
 	intptr_t handle;
 	struct _finddata_t f;
 
+#if 0
 	if(access(path, F_OK)==-1 && !strchr(path,'*') && !strchr(path,'?'))
 		return(false);
-
+#endif
 	if((handle=_findfirst((char*)path,&f))==-1)
 		return(false);
 
-- 
GitLab