git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f44bb
)
r2212: Optimisation. Passes masktest against W2K3.
author
Jeremy Allison
<jra@samba.org>
Fri, 3 Sep 2004 17:44:07 +0000
(17:44 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:58:32 +0000
(12:58 -0500)
Jeremy.
(This used to be commit
fb7a529c4c65788c307c1043cf2b664059ed8c2a
)
source4/lib/ms_fnmatch.c
patch
|
blob
|
history
diff --git
a/source4/lib/ms_fnmatch.c
b/source4/lib/ms_fnmatch.c
index dd015a0ac89d2111c289e1fa946077b7fbc1db33..1c4b3d1806b7221d5abbc38d65d085bf8a613a6f 100644
(file)
--- a/
source4/lib/ms_fnmatch.c
+++ b/
source4/lib/ms_fnmatch.c
@@
-173,6
+173,9
@@
static int ms_fnmatch_w(const smb_ucs2_t *pattern, const smb_ucs2_t *string,
break;
case UCS2_CHAR('*'):
+ while (*p == UCS2_CHAR('*')) {
+ p++;
+ }
for (; *n; n++) {
if (ms_fnmatch_w(p, n, protocol) == 0) return 0;
}