From: Jeremy Allison Date: Thu, 4 Dec 2008 23:35:07 +0000 (-0800) Subject: Fix bug #5937 - filenames with "*" char hide other files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7917038db0277d16e5284ee261a4913e278e5ac7;p=thirdparty%2Fsamba.git Fix bug #5937 - filenames with "*" char hide other files Jeremy. --- diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 9daef90115f..904a84bef6d 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -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; } /****************************************************************************