[Samba] Re: String overflow in safe_strcpy - bug in documentation

Thomas Bork tombork at web.de
Tue Jul 20 19:51:25 GMT 2004


Herb Lewis schrieb:

> you can change "mangle prefix" to specify the number of characters you
> want to stay the same. Just remember the more letters that remain the
> same the more likely you will get a collision and slow things down.

http://de.samba.org/samba/docs/man/smb.conf.5.html

mangling method (G)
controls the algorithm used for the generating the mangled names. Can 
take two different values, "hash" and "hash2". "hash" is the default and
                                                ^^^^^^^^^^^^^^^^^^^^
is the algorithm that has been used in Samba for many years. "hash2" is 
a newer and considered a better algorithm (generates less collisions) in 
the names. However, many Win32 applications store the mangled names and 
so changing to the new algorithm must not be done lightly as these 
applications may break unless reinstalled.

Default: mangling method = hash2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Example: mangling method = hash


But:
"hash" is not the default (this was in 2.2.x)


der tom


More information about the samba mailing list