[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4599-gdda4402

Jeremy Allison jra at samba.org
Thu Dec 4 23:34:51 GMT 2008


The branch, v3-3-test has been updated
       via  dda44029e98d581e358146443d66d3e243163f15 (commit)
      from  e4ea7d93e6d60f5e5759e27bfa9e58ae955b0b3b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit dda44029e98d581e358146443d66d3e243163f15
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Dec 4 15:34:09 2008 -0800

    Fix bug #5937 - filenames with "*" char hide other files
    Jeremy.

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

Summary of changes:
 source/smbd/trans2.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index d475165..61d23ef 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1087,15 +1087,13 @@ static bool exact_match(connection_struct *conn,
 {
 	if (mask[0] == '.' && mask[1] == 0)
 		return False;
-	if (conn->case_sensitive)
-		return strcmp(str,mask)==0;
-	if (StrCaseCmp(str,mask) != 0) {
-		return False;
-	}
 	if (dptr_has_wild(conn->dirptr)) {
 		return False;
 	}
-	return True;
+	if (conn->case_sensitive)
+		return strcmp(str,mask)==0;
+	else
+		return StrCaseCmp(str,mask) == 0;
 }
 
 /****************************************************************************


-- 
Samba Shared Repository


More information about the samba-cvs mailing list