From 3fb43a442cd77c06d8ba58cbd464e4ed100f8dec Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Dec 2008 15:33:27 -0800 Subject: [PATCH] Fix bug #5937 - filenames with "*" char hide other files Jeremy. (cherry picked from commit 601c7eabfdb3d2725849669dda58de6db22d9b8f) --- source/smbd/trans2.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index cb7cad153f0..ebf448f4fd9 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -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; } /**************************************************************************** -- 2.11.4.GIT