summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-07-23 22:06:05 +0000
committerJeremy Allison <jra@samba.org>2001-07-23 22:06:05 +0000
commita9ab7eaa5d023f0f6c2421f504f81988fd41467b (patch)
treecf65325ae442ed81c29af764246bf31692c3bd69 /source3/lib
parentcab11894ec59359e7eac97adf18b1d699c8311bf (diff)
downloadsamba-a9ab7eaa5d023f0f6c2421f504f81988fd41467b.tar.gz
samba-a9ab7eaa5d023f0f6c2421f504f81988fd41467b.tar.bz2
samba-a9ab7eaa5d023f0f6c2421f504f81988fd41467b.zip
Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory. Jeremy. (This used to be commit eea1c30df246e081e672d7132345d0fd35ad9841)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 78e801087f..d45a805200 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1793,7 +1793,20 @@ BOOL mask_match(char *string, char *pattern, BOOL is_case_sensitive)
return ms_fnmatch(p2, s2) == 0;
}
+/*******************************************************************
+ Simple case insensitive interface to ms_fnmatch.
+*******************************************************************/
+
+BOOL wild_match(char *string, char *pattern)
+{
+ pstring p2, s2;
+ pstrcpy(p2, pattern);
+ pstrcpy(s2, string);
+ strlower(p2);
+ strlower(s2);
+ return ms_fnmatch(p2, s2) == 0;
+}
#ifdef __INSURE__