The Samba-Bugzilla – Attachment 360 Details for
Bug 971
options 'case sensitive' and 'preserve case' are mutually exclusive. hinders performance tuning on large directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for 'case sensitive' and 'preserve case' being mutually exclusive
samba.diff (text/plain), 1.17 KB, created by
Philipp Richter
on 2004-01-14 08:11:46 UTC
(
hide
)
Description:
Fix for 'case sensitive' and 'preserve case' being mutually exclusive
Filename:
MIME Type:
Creator:
Philipp Richter
Created:
2004-01-14 08:11:46 UTC
Size:
1.17 KB
patch
obsolete
> >Clifford Wolf <clifford@clifford.at>: > Fix for a configuration such as: > case sensitive = yes > preserve case = no > short preserve case = no > mangle case = yes > >Index: source/smbd/filename.c >=================================================================== >RCS file: /cvsroot/samba/source/smbd/filename.c,v >retrieving revision 1.61 >diff -u -r1.61 filename.c >--- source/smbd/filename.c 9 Sep 2003 04:07:26 -0000 1.61 >+++ source/smbd/filename.c 14 Jan 2004 14:46:16 -0000 >@@ -151,7 +151,7 @@ > pstrcpy(saved_last_component, name); > } > >- if (!case_sensitive && (!case_preserve || (mangle_is_8_3(name, False) && !short_case_preserve))) >+ if (!case_preserve || (mangle_is_8_3(name, False) && !short_case_preserve)) > strnorm(name); > > /* >@@ -192,8 +192,15 @@ > * sensitive then searching won't help. > */ > >- if (case_sensitive && !mangle_is_mangled(name) && !use_mangled_map) >+ if (case_sensitive && !mangle_is_mangled(name) && !use_mangled_map) { >+ if ( (start=strrchr(start, '/')) != NULL ) { >+ *start = 0; >+ if (SMB_VFS_STAT(conn, name, &st) != 0) >+ *bad_path = True; >+ *start = '/'; // is that needed? >+ } > return(False); >+ } > > name_has_wildcard = ms_has_wild(start); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 971
: 360