summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-12-04 15:35:32 -0800
committerJeremy Allison <jra@samba.org>2008-12-04 15:35:32 -0800
commit0e723d8f7d918d2d1a1e9e26d976f016d5d97c94 (patch)
tree5a5cbb93a98aed44449be5fbbf20345b26634d3f /source3/smbd
parent09b4a9513cf0be52dcd43660ae384b8f7c398287 (diff)
downloadsamba-0e723d8f7d918d2d1a1e9e26d976f016d5d97c94.tar.gz
samba-0e723d8f7d918d2d1a1e9e26d976f016d5d97c94.tar.bz2
samba-0e723d8f7d918d2d1a1e9e26d976f016d5d97c94.zip
Fix bug #5937 - filenames with "*" char hide other files
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index f41210b2e1..606e656795 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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;
}
/****************************************************************************