[SCM] Samba Shared Repository - branch master updated - 6ce29dc9add1252b0ded9d2c1c2b6bae74604cc4

Volker Lendecke vlendec at samba.org
Tue Nov 18 16:00:48 GMT 2008


The branch, master has been updated
       via  6ce29dc9add1252b0ded9d2c1c2b6bae74604cc4 (commit)
      from  6ef719bf92f6a6b9cdbd35d6b9c6e9d4d4f0dde5 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 6ce29dc9add1252b0ded9d2c1c2b6bae74604cc4
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:
 source3/smbd/filename.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 562f1e8..3eb2d63 100644
--- a/source3/smbd/filename.c
+++ b/source3/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