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