summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-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. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25117: The mega-patch Jerry was waiting for. Remove all pstrings fromJeremy Allison1-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. (This used to be commit 7f0db75fb0f24873577dcb758a2ecee74fdc4297)
2007-10-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-32/+33
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r23866: Fix a 1-byte buffer overrunVolker Lendecke1-1/+1
(This used to be commit 2ed83d36fec918e6ad9605f43e1a49fa5b61f17b)
2007-10-10r23844: Add patch series from Volker (after review and consultation).Jeremy Allison1-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. (This used to be commit ea6ef368891af24164d2e76700c405a82b3dfc19)
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-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-12/+16
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r7842: With the patch I sent Steve yesterday this gives us complete POSIX ↵Jeremy Allison1-1/+9
pathnames. ie. files containing : and \ can be accessed from Linux. Jeremy. (This used to be commit e9b8d23d6138d909a65ea70b2e801881e8333b38)
2007-10-10r6625: Remove another global variable left over from a long time ago (magic ↵Jeremy Allison1-10/+9
char). Jeremy. (This used to be commit b1bfa9cb37deb22d1d08bc60ba44d61334f6446e)
2007-10-10r1570: merging changes from 3.0.5Gerald Carter1-2/+2
(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)
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-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-2/+2
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-7/+14
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-04-11don't try to return a voidAndrew Tridgell1-1/+1
(This used to be commit 51b4de0ae3b05c4f34a645ae9c6e395bc37226e6)
2002-04-11this adds a completely new hash based mangling schemeAndrew Tridgell1-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 used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
2002-04-11This split the mangling code up to allow for the possibility of multipleAndrew Tridgell1-915/+68
mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty. (This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-08a fix yet committed to 2.2 sometimes ago and reintroduced here!Simo Sorce1-1/+1
(This used to be commit aff7073dabb6253fea4729f52240a25f90206699)
2002-04-08Reintroduce the 2.2 name mangling code, until we get are more flexible solution.Andrew Bartlett1-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 (This used to be commit ad8aa470575c39fcbc7f1440bf1081d7ea31c0aa)
2002-03-14Actually include some *information* in the mangle debug messages.Andrew Bartlett1-14/+39
In particular this shows the filename, prefix and counters involved. The unicode -> unix converion only occours for the error case. Andrew Bartlett (This used to be commit 9c8de8c6cf44ead0719efa48a34c9c9d54402ac6)
2002-02-19in dos_unmangle() the only function call was to *mangle()*. Adding theAndrew Bartlett1-1/+1
'un' dramaticly increses the functionality of this code :-). Andrew Bartlett (This used to be commit 15b9b63db57901fbfa3d62b64212742f361ee519)
2002-02-04better debug messages!Simo Sorce1-8/+8
(This used to be commit e3bb6867454307ae592115e205d32ddd53988678)
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)
2002-01-25Fix a 'const' warning.Andrew Bartlett1-1/+1
(This used to be commit 56be51d648da971bcf1250470b29918e43dc622b)
2002-01-25micro fix :-)Simo Sorce1-0/+1
(This used to be commit 8929f07a15e7c6f6dbc72b1c50b45eb4c321d516)
2002-01-25minor fixesSimo Sorce1-3/+5
(This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)
2002-01-24handle filenames like .bashrc better in the new mangling codeAndrew Tridgell1-8/+12
(This used to be commit 05adb30eabceea0ebbd7a7831533e2d4f20e58c8)
2001-11-24removed unused functionAndrew Tridgell1-18/+0
(This used to be commit ad7afbfdea600a62fa1550bd354996ad38807533)
2001-11-12some bugfix and new functions,Simo Sorce1-31/+10
modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy (This used to be commit 8bb5cb27c2012b8967482255d48a1b48d3acd9db)
2001-11-10fixed, moved and added some functionsSimo Sorce1-1/+1
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c (This used to be commit 64dde3b64fc091cda95fc4ed145595b5d79b2e01)
2001-11-05Fixed compiler warnings.Tim Potter1-3/+2
(This used to be commit 54e40b270208774ed71eff32f3c3b1d3b86b5aca)
2001-11-04a big one:Simo Sorce1-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. (This used to be commit ee19f7efb6ea9216fc91cf112ac1afa691983e9d)
2001-10-29- fix string len for an ucs2_to_dos function as any ucs2 char may be up to 4 ↵Simo Sorce1-4/+81
dos hars... - addedd ascii compatibility functions (This used to be commit 8b9302b7078f1dd5459051500ed19a696dc09ae0)
2001-10-28fix a logic bug on max size of a returned string,Simo Sorce1-3/+9
this fixes also the bug with file renaming. (This used to be commit 5246d7609c3aff658fcd08a1f1c1bb6e11509e35)
2001-10-26Fixed compile warning.Tim Potter1-1/+1
(This used to be commit 320c21b7a9e0a914b8a9523775df8895cb41256f)
2001-10-23get rid of compiler warnings (casts and delete unused variables)Herb Lewis1-1/+0
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-22ops, some testing code in compat function let only mangled name come back.Simo Sorce1-12/+12
(This used to be commit e48eb7b572de10481e928fb55243f47e8a3aa446)
2001-10-22lets try the new mangling codeSimo Sorce1-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 (This used to be commit 1ffacd2068a896d36a9e56b6e28c63e2f7e98762)
2001-10-13introduce mangle backward compatibility functionsSimo Sorce1-2/+147
add talloc_asprintf() (This used to be commit 7264d611eff871f424d449e1ff1c7ec3f5fdde40)
2001-10-11remove unused function in mangle.cSimo Sorce1-12/+0
fix some alloc leaks spotted by andreas moroder. (This used to be commit 39409a20f69078709c63f6f867c042e66d5c7de3)
2001-10-10Fixed some compile warnings.Tim Potter1-4/+2
(This used to be commit c9b3e6c71401efe754c10f7077671f0c1cebdafb)
2001-10-08tim suggested to add a copyright note :)Simo Sorce1-1/+21
(This used to be commit c0bb484e0fcdfece62d361aaaebd90cf15548992)
2001-10-07more fixing and testing.Simo Sorce1-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. (This used to be commit 74f746fee2e528e4f23192e21e1d74739dc1072e)
2001-10-04init only in test code.Simo Sorce1-48/+55
remove unused structure for tdb data. fixes. (This used to be commit c82cf58ae2ae9790b8575328b419dbc8a089b60f)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-29undef the code for nowSimo Sorce1-2/+2
(This used to be commit 5ab220efd7a1532e11370cb0fc9854d610a7f3d7)
2001-09-29further devel and test kit.Simo Sorce1-67/+264
first tests show it still does not work. work in progress... (This used to be commit a4c746ac474e2e4cead78076ffe2109fab74aefe)
2001-09-27get out unicode_from_buffer and buffer_from_unicode, unneeded.Simo Sorce1-112/+139
store mangled filename in dos charset and unmangled in unicode. clean ups still lot to do. againg compiled but not yet tested. (This used to be commit 2d1aabb6d4bf23985a9ce0f7e065292aacedc80a)
2001-09-27minor fixesSimo Sorce1-10/+5
(This used to be commit 57e639bbdd115b51362caf7e3db4ba34ccdeddc2)