]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug #5937 - filenames with "*" char hide other files
authorJeremy Allison <jra@samba.org>
Thu, 4 Dec 2008 23:34:09 +0000 (15:34 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Dec 2008 09:27:16 +0000 (10:27 +0100)
Jeremy.
(cherry picked from commit dda44029e98d581e358146443d66d3e243163f15)

source/smbd/trans2.c

index d4751657c334676f2736c33d34dafb6e709763a6..61d23ef954f137c37b8bcc35236ed677cb1ad6e3 100644 (file)
@@ -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;
 }
 
 /****************************************************************************