[PATCH 4/6] ntdll: treat smbfs as case-insensitive on FreeBSD

Damjan Jovanovic damjan.jov at gmail.com
Mon Nov 9 22:49:56 CST 2020


Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
 dlls/ntdll/unix/file.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
-------------- next part --------------
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index 7a97f2bdd85..3f18a3ea7ed 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -1128,7 +1128,10 @@ static BOOLEAN get_dir_case_sensitivity_stat( const char *dir )
         !strncmp( stfs.f_mntfromname, "ciopfs", 5 ))
         return FALSE;
     /* msdosfs was case-insensitive since FreeBSD 8, if not earlier */
-    if (!strcmp( stfs.f_fstypename, "msdosfs" ))
+    if (!strcmp( stfs.f_fstypename, "msdosfs" ) ||
+        /* older CIFS protocol versions uppercase filename on the client,
+         * newer versions should be case-insensitive on the server anyway */
+        !strcmp( stfs.f_fstypename, "smbfs" ))
         return FALSE;
 #ifdef __APPLE__
     if (!strcmp( stfs.f_fstypename, "msdos" ) ||


More information about the wine-devel mailing list