summaryrefslogtreecommitdiffstats
path: root/source/smbd/mangle.c
Commit message (Collapse)AuthorAgeFilesLines
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-7/+7
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison2007-10-101-0/+2
| | | | | | | | the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy.
* r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison2007-10-101-32/+33
| | | | | | interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy.
* r23866: Fix a 1-byte buffer overrunVolker Lendecke2007-10-101-1/+1
|
* r23844: Add patch series from Volker (after review and consultation).Jeremy Allison2007-10-101-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 0001-Save-a-strdup-in-stat_cache_add.patch 0002-Use-ISDOT-and-ISDOTDOT.patch 0003-Move-fname_equal-around.patch 0004-unix_convert-pstring-dirpath-char.patch 0005-Ignore-.o-files.patch 0006-Get-rid-of-pstrings-inside-unix_convert.patch 0007-revert-pstring-unix_convert.patch 0008-Make-name-an-allocated-pstring-inside-unix_convert.patch 0009-Pass-explicit-pstring-to-mangle_check_cache.patch 0010-Don-t-overwrite-orig_path-unnecessarily.patch 0011-Defer-allocating-name.patch 0012-Make-sure-dirpath-is-always-correctly-allocated.patch 0013-Remove-one-pstring-dependency-in-unix_convert.patch 0014-Remove-more-name-pstring-dependencies.patch 0015-Hide-the-nasty-API-of-mangle_check_cache-in-mangle_c.patch 0016-name-does-not-need-to-be-pstring-size-anymore.patch 0017-Make-use-of-ISDOT-and-ISDOTDOT.patch 0018-Remove-pstring-from-stat_cache_lookup.patch 0019-Add-my-copyright.patch To remove pstrings from statcache and unix_convert. Jeremy.
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-12/+16
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison2007-10-101-1/+9
| | | | | | | pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy.
* r6625: Remove another global variable left over from a long time ago (magic ↵Jeremy Allison2007-10-101-10/+9
| | | | | | char). Jeremy.
* r1570: merging changes from 3.0.5Gerald Carter2007-10-101-2/+2
|
* r570: Remove lots of globals to handle case issues - move themJeremy Allison2007-10-101-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.
* Merge from HEAD:Andrew Bartlett2003-03-171-1/+1
| | | | | | | | | | - Make ReadDirName return a const char*. - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-2/+2
| | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-7/+14
|
* 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
|