summaryrefslogtreecommitdiff
path: root/source3/lib/ms_fnmatch.c
AgeCommit message (Collapse)AuthorFilesLines
2011-05-06lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()Andrew Bartlett1-7/+0
gen_fnmatch was a duplicate symbol in the top level build. gen_fnmatch() used for simple non-CIFS pattern matching, so selecting the lib/util implementation should not be a concern. Andrew Bartlett
2011-02-18charset Remove use of {isupper,islower,toupper,tolower}_w functionsAndrew Bartlett1-1/+1
These now call the common _m functions that consider UTF16 code points. This removes the code which will make up a 'lame' table in memory, as this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128). When used, a top level waf build will always locate the correct table - in the build tree or outside - due to relinking the installed binary. Andrew Bartlett
2009-11-21s3: Fix a bool/enum mismatchVolker Lendecke1-1/+1
2009-04-08s3:lib Use push_ucs2_talloc() in ms_fnmatch()Andrew Bartlett1-7/+7
Signed-off-by: Günther Deschner <gd@samba.org>
2008-05-20Cleanup size_t return values in callers of convert_string_allocateTim Prouty1-2/+3
This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
2008-01-09Save one popular mallocVolker Lendecke1-6/+18
(This used to be commit 2150663d9eaf5cdab08de2ad1fcc952d7e85936c)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-3/+3
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25170: Remove pstring limits from ms_fnmatch and module load.Jeremy Allison1-22/+21
Jeremy. (This used to be commit 764574ee05ea4f13cdd30c0a0668ffeb81756989)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r6044: Ensure the old search calls always ask mask_match to translateJeremy Allison1-2/+2
patterns like ????????.??? - even if using an NT1 protocol. Matches W2K3 behavior. Jeremy. (This used to be commit 67f6473f50f3284b9ccbe6f983f23cd42b3b7c9f)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-1/+1
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r4032: Fix bug #2110 - ensure we convert to ucs2 correctly.Jeremy Allison1-2/+11
Jeremy. (This used to be commit a1e5a2a6ab1abc9add7a606e2e3f2d6c88dcf96c)
2007-10-10r2824: restored the is_case_sensitive option to ms_fnmatch() in Samba3. It isAndrew Tridgell1-10/+21
very rarely used, but we sohuldn't be removing a feature in a minor release of this kind. (This used to be commit 4ce0505bc369243aa77013519ce4e4f6e50f5a48)
2007-10-10r2778: merged the new samba4 ms_fnmatch code to Samba3. Thanks to RustyAndrew Tridgell1-176/+131
Russel for some help in designing the new algorithm. (This used to be commit 38144f8d2cda32edacf90725f28e763689128d0d)
2007-10-10r2213: Optimisation. Passes masktest against W2K3.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 5dc3324c4f1ae10c96b6d385531369e0eeee4c40)
2003-08-12Fix for bugid #205 - work by Andrew Bartlet (modified to useJeremy Allison1-29/+53
fixed buffer by me). Jeremy. (This used to be commit 6f68b8de4760a2103eae0a51b2aca356990ea526)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-08-20a bunch of fixes from the sflight to seattleAndrew Tridgell1-11/+19
in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch (This used to be commit 3eba9606f71f90bfd9820af26f8676277ed22390)
2001-07-04The big character set handling changeover!Andrew Tridgell1-93/+52
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-05-02Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison1-5/+5
the pam password change code to ensure that existing and working password chat scripts don't break with 2.2.1. PAM password changing has to be explicitly requested. Allowed wildcards in pam password change matching (matches password chat script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to stop warnings. Don't worry - the const changes are isolated and don't cause any other warnings :-). Jeremy. (This used to be commit 47b4d82536c09bffe3a0d9917fa31d935f1be7d8)
2001-04-17Merged Andrew's wfw fix (2).Jeremy Allison1-2/+5
Jeremy. (This used to be commit a4fb755a48d27f21bd0a5d9e9d1227a08c13bdff)
2001-04-17AIX ACLs donated by IBM.Jeremy Allison1-0/+105
Merge Andrew's fnmatch fix for WfW. Jeremy. (This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
2000-05-02Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison1-0/+2
of doing a system call every time we want to just get our pid. Jeremy. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
2000-04-30some cleanupsAndrew Tridgell1-10/+13
(This used to be commit 95f6c0f84ab9f3649ddf53ac2ca5261448af2383)
2000-04-30YIPEE!!!!!Andrew Tridgell1-0/+146
We finally have a perfect emulation of Microsoft wildcard matching. The routine ms_fnmatch() does wildcard matching with all MS wildcards (including the unicode wildcards), and masktest against a NT4 workstation with hundreds of thousands of random exmaples has not found a single error. amazingly it is only about 60 lines of code, but it has taken us years to get it right. I didn't sleep much last night :) (This used to be commit cc9e007cdfdd300189f89e2a55e4234e47fa842d)