Damjan Jovanovic : ntdll: Treat smbfs as case-insensitive on FreeBSD.
Alexandre Julliard
julliard at winehq.org
Tue Nov 10 15:30:24 CST 2020
Module: wine
Branch: master
Commit: eba4f333b9ed217d8b40bde9b4941c0edc336f6c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=eba4f333b9ed217d8b40bde9b4941c0edc336f6c
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Tue Nov 10 06:49:56 2020 +0200
ntdll: Treat smbfs as case-insensitive on FreeBSD.
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/unix/file.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index 7a97f2bdd85..f7fa78db2be 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -1128,14 +1128,16 @@ 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" ) ||
!strcmp( stfs.f_fstypename, "cd9660" ) ||
!strcmp( stfs.f_fstypename, "udf" ) ||
- !strcmp( stfs.f_fstypename, "ntfs" ) ||
- !strcmp( stfs.f_fstypename, "smbfs" ))
+ !strcmp( stfs.f_fstypename, "ntfs" ))
return FALSE;
#ifdef _DARWIN_FEATURE_64_BIT_INODE
if (!strcmp( stfs.f_fstypename, "hfs" ) && (stfs.f_fssubtype == 0 ||
More information about the wine-cvs
mailing list