1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

Fix bug #5937 - filenames with "*" char hide other files

Jeremy.
This commit is contained in:
Jeremy Allison 2008-12-04 15:35:32 -08:00
parent 09b4a9513c
commit 0e723d8f7d

View File

@ -1095,15 +1095,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;
}
/****************************************************************************