[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - build_3.2.3_ctdb.50-62-g8a918ee

Michael Adam obnox at samba.org
Mon Nov 24 12:51:50 GMT 2008


The branch, v3-2-ctdb has been updated
       via  8a918ee94df9a59c145a66950de4dcec3c0fd523 (commit)
      from  d249a9ca2a1761f20655cbcfe39fbc942547974d (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb


- Log -----------------------------------------------------------------
commit 8a918ee94df9a59c145a66950de4dcec3c0fd523
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)
    (cherry picked from commit 96764065e2e2eaa13cb71bc9ea2d75800da7db4f)

-----------------------------------------------------------------------

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-CTDB repository


More information about the samba-cvs mailing list