diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-23 22:06:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-23 22:06:05 +0000 |
commit | eea1c30df246e081e672d7132345d0fd35ad9841 (patch) | |
tree | 7a04bae25325da000b1ea030cf84ce1fe162ad94 /source/lib | |
parent | 9444fc554ba31ef516d0d98bbfe7f1af883e3970 (diff) | |
download | samba-eea1c30df246e081e672d7132345d0fd35ad9841.tar.gz samba-eea1c30df246e081e672d7132345d0fd35ad9841.tar.xz samba-eea1c30df246e081e672d7132345d0fd35ad9841.zip |
Fix case insensitive password change code.
Fixed crash bug with un-zeroed talloced memory.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 78e801087f0..d45a8052001 100644 --- a/source/lib/util.c +++ b/source/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__ |