[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-4384-g0dbcc30
Volker Lendecke
vlendec at samba.org
Tue Nov 18 16:05:38 GMT 2008
The branch, v3-3-test has been updated
via 0dbcc308e30b121268cdfcdd70c50c4ed38ab433 (commit)
from f4ebb87e39a3f5d1b76cfd2be86d56de9ae98ee9 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 0dbcc308e30b121268cdfcdd70c50c4ed38ab433
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
-----------------------------------------------------------------------
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