summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-12 04:25:26 +0000
committerJeremy Allison <jra@samba.org>2003-08-12 04:25:26 +0000
commitaed1610ec22bb3eb283f548892fb9e00917df5f7 (patch)
treefbc3bbec10a16a8627375ce446ea8438fe1e1777 /source3/lib/util.c
parent61a1fa97afd500e29d2ae3119412a34d39baf3c6 (diff)
downloadsamba-aed1610ec22bb3eb283f548892fb9e00917df5f7.tar.gz
samba-aed1610ec22bb3eb283f548892fb9e00917df5f7.tar.bz2
samba-aed1610ec22bb3eb283f548892fb9e00917df5f7.zip
Fix for bugid #205 - work by Andrew Bartlet (modified to use
fixed buffer by me). Jeremy. (This used to be commit 6f68b8de4760a2103eae0a51b2aca356990ea526)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index eaa232a549..efad01166e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2335,21 +2335,12 @@ BOOL ms_has_wild_w(const smb_ucs2_t *s)
BOOL mask_match(const char *string, char *pattern, BOOL is_case_sensitive)
{
- fstring p2, s2;
-
if (strcmp(string,"..") == 0)
string = ".";
if (strcmp(pattern,".") == 0)
return False;
- if (is_case_sensitive)
- return ms_fnmatch(pattern, string, Protocol) == 0;
-
- fstrcpy(p2, pattern);
- fstrcpy(s2, string);
- strlower_m(p2);
- strlower_m(s2);
- return ms_fnmatch(p2, s2, Protocol) == 0;
+ return ms_fnmatch(pattern, string, Protocol, is_case_sensitive) == 0;
}
/*********************************************************