Fix bug #5937 - filenames with "*" char hide other files
authorJeremy Allison <jra@samba.org>
Thu, 4 Dec 2008 23:33:27 +0000 (15:33 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 4 Dec 2008 23:33:27 +0000 (15:33 -0800)
Jeremy.

source/smbd/trans2.c

index cb7cad153f0c475329c1bcce16240fd13602c90f..ebf448f4fd939f540120931bc3bbc690de995915 100644 (file)
@@ -1080,15 +1080,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;
 }
 
 /****************************************************************************