diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index cb7cad1..a5b1a59 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; } /****************************************************************************