summaryrefslogtreecommitdiffstats
path: root/source3/lib/ms_fnmatch.c
Commit message (Collapse)AuthorAgeFilesLines
* r6044: Ensure the old search calls always ask mask_match to translateJeremy Allison2007-10-101-2/+2
| | | | | | | patterns like ????????.??? - even if using an NT1 protocol. Matches W2K3 behavior. Jeremy. (This used to be commit 67f6473f50f3284b9ccbe6f983f23cd42b3b7c9f)
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-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)
* r4032: Fix bug #2110 - ensure we convert to ucs2 correctly.Jeremy Allison2007-10-101-2/+11
| | | | | Jeremy. (This used to be commit a1e5a2a6ab1abc9add7a606e2e3f2d6c88dcf96c)
* r2824: restored the is_case_sensitive option to ms_fnmatch() in Samba3. It isAndrew Tridgell2007-10-101-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)
* r2778: merged the new samba4 ms_fnmatch code to Samba3. Thanks to RustyAndrew Tridgell2007-10-101-176/+131
| | | | | Russel for some help in designing the new algorithm. (This used to be commit 38144f8d2cda32edacf90725f28e763689128d0d)
* r2213: Optimisation. Passes masktest against W2K3.Jeremy Allison2007-10-101-0/+3
| | | | | Jeremy. (This used to be commit 5dc3324c4f1ae10c96b6d385531369e0eeee4c40)
* Fix for bugid #205 - work by Andrew Bartlet (modified to useJeremy Allison2003-08-121-29/+53
| | | | | | fixed buffer by me). Jeremy. (This used to be commit 6f68b8de4760a2103eae0a51b2aca356990ea526)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* a bunch of fixes from the sflight to seattleAndrew Tridgell2001-08-201-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)
* The big character set handling changeover!Andrew Tridgell2001-07-041-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)
* Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison2001-05-021-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)
* Merged Andrew's wfw fix (2).Jeremy Allison2001-04-171-2/+5
| | | | | Jeremy. (This used to be commit a4fb755a48d27f21bd0a5d9e9d1227a08c13bdff)
* AIX ACLs donated by IBM.Jeremy Allison2001-04-171-0/+105
| | | | | | Merge Andrew's fnmatch fix for WfW. Jeremy. (This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-0/+2
| | | | | | of doing a system call every time we want to just get our pid. Jeremy. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
* some cleanupsAndrew Tridgell2000-04-301-10/+13
| | | | (This used to be commit 95f6c0f84ab9f3649ddf53ac2ca5261448af2383)
* YIPEE!!!!!Andrew Tridgell2000-04-301-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)