git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b4a95
)
Fix bug #5937 - filenames with "*" char hide other files
author
Jeremy Allison
<jra@samba.org>
Thu, 4 Dec 2008 23:35:32 +0000
(15:35 -0800)
committer
Jeremy Allison
<jra@samba.org>
Thu, 4 Dec 2008 23:35:32 +0000
(15:35 -0800)
Jeremy.
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index f41210b2e19de6417889e4c9159b51c2090d4489..606e65679549ea5b6a13f40a0e35cd69e0f32db7 100644
(file)
--- 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;
}
/****************************************************************************