1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-26 03:42:04 +03:00
Commit Graph

76 Commits

Author SHA1 Message Date
430cf63b91 r1570: merging changes from 3.0.5 2007-10-10 10:52:15 -05:00
578a508509 r570: Remove lots of globals to handle case issues - move them
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.
2007-10-10 10:51:30 -05:00
10b53d7c6f Merge from HEAD:
- Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
-
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
-
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
51b4de0ae3 don't try to return a void -
bb173c1a7e this adds a completely new hash based mangling scheme
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.
-
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
-
aff7073dab a fix yet committed to 2.2 sometimes ago and reintroduced here! -
ad8aa47057 Reintroduce the 2.2 name mangling code, until we get are more flexible solution.
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
-
9c8de8c6cf Actually include some *information* in the mangle debug messages.
In particular this shows the filename, prefix and counters involved.

The unicode -> unix converion only occours for the error case.

Andrew Bartlett
-
15b9b63db5 in dos_unmangle() the only function call was to *mangle()*. Adding the
'un' dramaticly increses the functionality of this code :-).

Andrew Bartlett
-
e3bb686745 better debug messages! -
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
56be51d648 Fix a 'const' warning. -
8929f07a15 micro fix :-) -
04f492980b minor fixes -
05adb30eab handle filenames like .bashrc better in the new mangling code -
ad7afbfdea removed unused function -
8bb5cb27c2 some bugfix and new functions,
modified mangle.c to use mosltly acnv_????() functions.
this should make also build farm happy
-
64dde3b64f fixed, moved and added some functions
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
-
54e40b2702 Fixed compiler warnings. -
ee19f7efb6 a big one:
- 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.
-
8b9302b707 - fix string len for an ucs2_to_dos function as any ucs2 char may be up to 4 dos hars...
- addedd ascii compatibility functions
-
5246d7609c fix a logic bug on max size of a returned string,
this fixes also the bug with file renaming.
-
320c21b7a9 Fixed compile warning. -
51cb4411df get rid of compiler warnings (casts and delete unused variables) -
e48eb7b572 ops, some testing code in compat function let only mangled name come back. -
1ffacd2068 lets try the new mangling code
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
-
7264d611ef introduce mangle backward compatibility functions
add talloc_asprintf()
-
39409a20f6 remove unused function in mangle.c
fix some alloc leaks spotted by andreas moroder.
-
c9b3e6c714 Fixed some compile warnings. -
c0bb484e0f tim suggested to add a copyright note :) -
74f746fee2 more fixing and testing.
added ucs2_to_dos83 function.
the code should be ok now.
further test with japanese and other languages is needed at this point.
-
c82cf58ae2 init only in test code.
remove unused structure for tdb data.
fixes.
-
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
5ab220efd7 undef the code for now -
a4c746ac47 further devel and test kit.
first tests show it still does not work.
work in progress...
-
2d1aabb6d4 get out unicode_from_buffer and buffer_from_unicode, unneeded.
store mangled filename in dos charset and unmangled in unicode.
clean ups
still lot to do.
againg compiled but not yet tested.
-
57e639bbdd minor fixes -
4ade36446e - the inactive core of the new mangling code that use tdb
- some more utils for unicode string manipulation
-
a95943fde0 move to SAFE_FREE() -
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
debb471267 The big character set handling changeover!
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.
-
c2977be340 Very minor cleanup. I was looking for another problem and found some bits
of code that were unclear.

Chris -)-----
-
50599b0fa2 Removed a patch that Andrew had added because 'insure' was incorrectly
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.
-
062d79bf8b avoided a memory leak in the ubi code by deleting a mangled cache
entry before adding to ensure that we don't ever add a duplicate entry

this code can be removed when ubi gets fixed
-
e5a3deba46 Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function
is called several *million* times during a NetBench run :-).
Jeremy.
-
d120f22fef smbd/mangle.c
smbd/negprot.c: Tidyup of static initializers.
smbd/server.c: Fix -l option.
Jeremy.
-
453a822a76 first pass at updating head branch to be to be the same as the SAMBA_2_0 branch -