]> 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:35:07 +0000 (15:35 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jan 2009 09:12:00 +0000 (10:12 +0100)
Jeremy.
(cherry picked from commit 7917038db0277d16e5284ee261a4913e278e5ac7)

source/smbd/trans2.c

index 9daef90115fb893d5c4a1de5325167631adbae07..904a84bef6d5748efd7087e41b5ae4203bcfb4ee 100644 (file)
@@ -966,15 +966,13 @@ static BOOL exact_match(connection_struct *conn, char *str, char *mask)
 {
        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;
 }
 
 /****************************************************************************