[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3160-g9676406
Volker Lendecke
vlendec at samba.org
Tue Nov 18 16:06:15 GMT 2008
The branch, v3-2-test has been updated
via 96764065e2e2eaa13cb71bc9ea2d75800da7db4f (commit)
from 742ac5c45674446546b9e8ee22320a39d700b195 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 96764065e2e2eaa13cb71bc9ea2d75800da7db4f
Author: Volker Lendecke <vl at samba.org>
Date: Tue Nov 18 17:03:38 2008 +0100
Fix trans2findfirst for the large directory optimization
With
case sensitive = yes
preserve case = no
short preserve case = no
default case = upper
a "dir FOO.txt" would not find "FOO.TXT" because FOO.txt ends up unconverted in
the mask for mask_match.
Jeremy, please check!
Volker
(cherry picked from commit 0dbcc308e30b121268cdfcdd70c50c4ed38ab433)
-----------------------------------------------------------------------
Summary of changes:
source/smbd/filename.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/filename.c b/source/smbd/filename.c
index 562f1e8..3eb2d63 100644
--- a/source/smbd/filename.c
+++ b/source/smbd/filename.c
@@ -206,6 +206,11 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
*pp_saved_last_component = talloc_strdup(ctx,
orig_path);
}
+ if (conn->case_sensitive && !conn->case_preserve &&
+ !conn->short_case_preserve) {
+ strnorm(*pp_saved_last_component,
+ lp_defaultcase(SNUM(conn)));
+ }
}
if (!(name = talloc_strdup(ctx, orig_path))) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list