summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle_hash2.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-18Add a in-memory cacheVolker Lendecke1-48/+19
This is a more general API that caches data with a LRU scheme. See include/cache.h. No comments yet, I'm still working on it. But Jeremy has given me a hint in one of his checkins that he would like to make use of this now. The idea is that we get rid of all our silly little caches and merge them all into one cache that we can then very easily trim, for example even with a smbcontrol message if someone decides memory is tight. The main user is the stat cache, this patch also converts the getwd cache. More caches to come. (This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-19/+19
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-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-53/+82
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r24603: In case of error we need to free prefix_cache otherwise on re-init ↵Simo Sorce1-0/+1
the first statement will return positively but prefix_cache_hashes would be NULL (This used to be commit fdc20894a0deb3c68b834e5d9d466873ca634bed)
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-10r18793: Fix BE string handling in the auto-generatedJeremy Allison1-1/+1
code. Should now work again with ASU. Jeremy. (This used to be commit 53e97bf92817b6cfc3f93c999a81ef8ad49a1609)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-22/+22
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r15103: Okay, looking closer: Samba4 tdb not exporting u32 is a bug in samba4'sVolker Lendecke1-12/+12
tdb. tdb_open_ex needs it. Can someone from samba4 tell me how this should be handled? Thanks, Volker (This used to be commit 0a2f1ed5e9012e07ef158666b68994d0961768b6)
2007-10-10r15102: u32 is a tdb-only thing that's not exported by samba4 tdb. Replace ↵Volker Lendecke1-12/+12
by uint32. Volker (This used to be commit 0a1665a1b78d063840e42e85229ace5a751e3985)
2007-10-10r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")Jeremy Allison1-6/+6
and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy. (This used to be commit c2752347eb2deeb2798c580ec7fc751a847717e9)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-2/+2
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r10600: Fix bug #2769 (mangle filenames ending in a space)Jeremy Allison1-1/+5
and an old bug where mangle mathod hash wasn't mangling file names with more than one dot which also end in a dot. Jeremy. (This used to be commit 105e38847dc0078951abcda16808590ccc363b00)
2007-10-10r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison1-0/+39
pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy. (This used to be commit e9b8d23d6138d909a65ea70b2e801881e8333b38)
2007-10-10r6977: Fix bug #2735 (not mangling control characters) plusJeremy Allison1-0/+5
ensure we don't create files with control characters either. Jeremy. (This used to be commit 0ca2423c706423a07721e375345b6d45a45cbcf4)
2007-10-10r6625: Remove another global variable left over from a long time ago (magic ↵Jeremy Allison1-8/+7
char). Jeremy. (This used to be commit b1bfa9cb37deb22d1d08bc60ba44d61334f6446e)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-6/+12
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-10r2082: lp_path should be lp_pathname.Jeremy Allison1-1/+2
Paranoia fix on mangle prefix. Jeremy. (This used to be commit cc91bbe20d9cb26e52ad417f279e2d60c85af2dc)
2007-10-10r1570: merging changes from 3.0.5Gerald Carter1-5/+3
(This used to be commit 430cf63b9148441bce42bfb15a8045de5da108f4)
2007-10-10r570: Remove lots of globals to handle case issues - move themJeremy Allison1-1/+1
to connection struct entries (as they should have been from the start). Jerry, once you've cut over to 3.0.4 release branch I'll add this to 3.0 also. - Jerry cut over :-). Jeremy. (This used to be commit 578a508509d21226ad3332fc54c3ab54cd8ae452)
2004-03-11Restore the contract on all convert_stringXX() interfaces. Add a ↵Jeremy Allison1-5/+1
"allow_bad_conv" boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
2003-11-18Ensure we mangle names ending in '.' in hash2 mangling method.Jeremy Allison1-1/+1
Jeremy. (This used to be commit fc2af591f5a2b08caa7389150c8cc5e298bd0ed4)
2003-10-22Put strcasecmp/strncasecmp on the banned list (except for needed callsJeremy Allison1-1/+1
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at all and I really want to discourage that. Jeremy. (This used to be commit d7e35dfb9283d560d0ed2ab231f36ed92767dace)
2003-09-15Fix OOPS when dealing with mangled names reported by several users.Jeremy Allison1-1/+1
This was my bug when removing a redundant strlen. Jerry - last showstopper I knew about. Jeremy. (This used to be commit 6e6769c20643f784d1b5023df3071a35d2e5bf89)
2003-09-15A *curse* upon the person who #ifdefed out the mangle debug statementsJeremy Allison1-1/+1
by default ! This is code that really needs to be able to be looked at on a customer system if it's misbehaving ! Jeremy (This used to be commit d512650340b3d28db763d018a6b05f6edf165bf0)
2003-08-27Check for embedded mb chars when testing for illegal characters like /.Jeremy Allison1-1/+23
Should fix mangling for Japanese language. Jeremy. (This used to be commit a238bcc440e310a9ea7800e4fb0b4d39c1f0a0d7)
2003-08-27Fix initial debug.Jeremy Allison1-1/+1
Jeremy. (This used to be commit bd40da06352184ed1c4bcaf3449dcdc7fdc59bbd)
2003-08-27Remove completely unneeded malloc/free out of this codepath.Jeremy Allison1-12/+11
Jeremy. (This used to be commit fda254169778cc3fa9c226473b5a1f95c17c99a7)
2003-03-17Merge from HEAD:Andrew Bartlett1-1/+1
- Make ReadDirName return a const char*. - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett (This used to be commit 10b53d7c6fd77f23433dd2ef12bb14b227147a48)
2003-02-24Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett1-4/+4
Andrew Bartlett (This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)
2002-10-21Merge mangle prefix code.Jeremy Allison1-16/+41
Jeremy. (This used to be commit 83261f43326ae65af498399b5c933dfb20df1df7)
2002-10-15Merge Anton's 64-bit fix.Jeremy Allison1-4/+2
Jeremy. (This used to be commit 0644f6a68e5c1d9a2c236ab0f90d4801848a9b33)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-8/+8
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-17Sync 3.0 branch with headJelmer Vernooij1-3/+3
(This used to be commit 42615b945e2e48e53a21ea47f2e45407913a6a1e)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-21/+89
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-04-12merged the mangling test and passdb bugfixes into SAMBA_3_0Andrew Tridgell1-0/+14
(This used to be commit 97eb3a121d33200ee7559b2413d6252efc04ebaf)
2002-04-11- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask theAndrew Tridgell1-2/+4
hash to suit - the prefix ends at the last dot, not the first (This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)
2002-04-11a few debug statements (disabled)Andrew Tridgell1-2/+7
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)
2002-04-11don't treat '.' as FLAG_ASCII, instead handle it separatelyAndrew Tridgell1-2/+2
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)
2002-04-11- tidier flag checking codeAndrew Tridgell1-8/+40
- finished the is_mangled() function (This used to be commit 128bec2071d640c775b58322256ac6bb03363741)
2002-04-11added some more commentsAndrew Tridgell1-5/+15
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)
2002-04-11some optimisations to the new mangling systemAndrew Tridgell1-16/+44
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)
2002-04-11this adds a completely new hash based mangling schemeAndrew Tridgell1-0/+510
the hash for this scheme is *much* larger (approximately 31 bits) and the code is written to be very fast, correctly handling multibyte while not doing any actual multi-byte conversions in the vast majority of cases you can select this scheme using "mangling method = hash2", although I may make it the default if it works out well. (This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)