summaryrefslogtreecommitdiff
path: root/source/smbd/mangle.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge in mangle fixes from 2.2.Jeremy Allison2002-06-131-7/+13
| | | | Jeremy.
* move to the FNV1 hash alghorithm seem goodSimo Sorce2002-04-241-0/+1
| | | | | | the test revealed 15 collision with 1 Million long file names :-) Simo.
* don't try to return a voidAndrew Tridgell2002-04-111-1/+1
|
* this adds a completely new hash based mangling schemeAndrew Tridgell2002-04-111-0/+1
| | | | | | | | | | 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 split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-915/+68
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.
* a fix yet committed to 2.2 sometimes ago and reintroduced here!Simo Sorce2002-04-081-1/+1
|
* Reintroduce the 2.2 name mangling code, until we get are more flexible solution.Andrew Bartlett2002-04-081-820/+785
| | | | | | | Even for a hash/cache setup, this code needs some more work, in particular it needs to use mangle_get_prefix() etc and to move to unicode internals. Andrew Bartlett
* Actually include some *information* in the mangle debug messages.Andrew Bartlett2002-03-141-14/+39
| | | | | | | | In particular this shows the filename, prefix and counters involved. The unicode -> unix converion only occours for the error case. Andrew Bartlett
* in dos_unmangle() the only function call was to *mangle()*. Adding theAndrew Bartlett2002-02-191-1/+1
| | | | | | 'un' dramaticly increses the functionality of this code :-). Andrew Bartlett
* better debug messages!Simo Sorce2002-02-041-8/+8
|
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Fix a 'const' warning.Andrew Bartlett2002-01-251-1/+1
|
* micro fix :-)Simo Sorce2002-01-251-0/+1
|
* minor fixesSimo Sorce2002-01-251-3/+5
|
* handle filenames like .bashrc better in the new mangling codeAndrew Tridgell2002-01-241-8/+12
|
* removed unused functionAndrew Tridgell2001-11-241-18/+0
|
* some bugfix and new functions,Simo Sorce2001-11-121-31/+10
| | | | | modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy
* fixed, moved and added some functionsSimo Sorce2001-11-101-1/+1
| | | | note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
* Fixed compiler warnings.Tim Potter2001-11-051-3/+2
|
* a big one:Simo Sorce2001-11-041-1084/+249
| | | | | | | | | | | | | | | | | - old mangle code has gone, the new one based on tdb seem resonably ok probably the valid.dat table need to be updated to treat wild chars as invalid ones (work ok without it) - a LOT of new string manipulation function for unicode, they are somewhat tested but a review would not be bad - some new function I will need for the new unix_convert function I'm writing, this will be renamed filename_convert and use only unicode strings. - charconv, I attached a comment, if someone wnat to look if I'm right or just was hacking to late in the night to make a sane one :) of course any bug is my responsibility an will be pleased to see patches if you find any. :-) Simo.
* - fix string len for an ucs2_to_dos function as any ucs2 char may be up to 4 ↵Simo Sorce2001-10-291-4/+81
| | | | | | dos hars... - addedd ascii compatibility functions
* fix a logic bug on max size of a returned string,Simo Sorce2001-10-281-3/+9
| | | | this fixes also the bug with file renaming.
* Fixed compile warning.Tim Potter2001-10-261-1/+1
|
* get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-231-1/+0
|
* ops, some testing code in compat function let only mangled name come back.Simo Sorce2001-10-221-12/+12
|
* lets try the new mangling codeSimo Sorce2001-10-221-7/+39
| | | | | | | all the calls go through a compatibility interface will change that soon a new mangle.tdb file will be set in the lock directory it contains a static mapping longname<->manglename
* introduce mangle backward compatibility functionsSimo Sorce2001-10-131-2/+147
| | | | add talloc_asprintf()
* remove unused function in mangle.cSimo Sorce2001-10-111-12/+0
| | | | fix some alloc leaks spotted by andreas moroder.
* Fixed some compile warnings.Tim Potter2001-10-101-4/+2
|
* tim suggested to add a copyright note :)Simo Sorce2001-10-081-1/+21
|
* more fixing and testing.Simo Sorce2001-10-071-54/+83
| | | | | | added ucs2_to_dos83 function. the code should be ok now. further test with japanese and other languages is needed at this point.
* init only in test code.Simo Sorce2001-10-041-48/+55
| | | | | remove unused structure for tdb data. fixes.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-2/+0
|
* undef the code for nowSimo Sorce2001-09-291-2/+2
|
* further devel and test kit.Simo Sorce2001-09-291-67/+264
| | | | | first tests show it still does not work. work in progress...
* get out unicode_from_buffer and buffer_from_unicode, unneeded.Simo Sorce2001-09-271-112/+139
| | | | | | | store mangled filename in dos charset and unmangled in unicode. clean ups still lot to do. againg compiled but not yet tested.
* minor fixesSimo Sorce2001-09-271-10/+5
|
* - the inactive core of the new mangling code that use tdbSimo Sorce2001-09-251-0/+357
| | | | - some more utils for unicode string manipulation
* move to SAFE_FREE()Simo Sorce2001-09-171-4/+4
|
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-12/+12
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-65/+5
| | | | | | | 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.
* Very minor cleanup. I was looking for another problem and found some bitsChristopher R. Hertel2001-07-021-2/+2
| | | | | | of code that were unclear. Chris -)-----
* Removed a patch that Andrew had added because 'insure' was incorrectlyChristopher R. Hertel2000-06-131-9/+0
| | | | | reporting a memory leak in the cache module. I've modified the cache code to prevent insure getting confused, so the patch can now be removed.
* avoided a memory leak in the ubi code by deleting a mangled cacheAndrew Tridgell2000-04-231-1/+11
| | | | | | entry before adding to ensure that we don't ever add a duplicate entry this code can be removed when ubi gets fixed
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-261-4/+4
| | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy.
* smbd/mangle.cJeremy Allison2000-01-081-1/+1
| | | | | | smbd/negprot.c: Tidyup of static initializers. smbd/server.c: Fix -l option. Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-30/+71
|
* removed comment line at end of fileLuke Leighton1998-11-021-1/+0
|
* Added back groupname map stuff removed by Andrew's "slash 'n' burn"Jeremy Allison1998-09-081-3/+4
| | | | | | | | | | | | | | | | | tactics :-). Protected by #ifdef until used. Fixed bug in fd_attempt_close() where a pointer to potentially free'd memory was returned. I hate that. Added "blocking locks" as a per-share option for performance testing. Changed is_mangled() so it will return true if called with a pathname and any component of the pathname was mangled (it was already attempting to do this, but not checking for a '/' as end-of-mangle). This should be a better fix for the wierd stat cache bug Andrew identified. Jeremy.
* fixed a bug in the name mangling code. It implicitly assumed thatAndrew Tridgell1998-09-031-39/+39
| | | | | | | | mangling a name can't increase it's size which isn't true. (imagine a file called "L B" which mangles to "LB~XX") The symptoms were that users couldn't run batch files from short directory names that contained non 8.3 characters (such as spaces).