[Samba] Hashing for short pathnames

Gerald (Jerry) Carter jerry at samba.org
Tue Feb 4 06:34:26 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 3 Feb 2003, Holger Biber wrote:

> using samba 2.2.5-UL (on a SuSE-SLOX-System)  we have to mangle long
> pathnames to short ones. We need this for some of our apps which
> generate batch-files (*.bat) for compilation. Normally this works
> correctly, exept for a directory named "Only_for_generation". This
> directory is mangled into "Only_~%0" (it' s NULL at the end). And this
> is the problem. In batch-files (*.bat) you shouldn't use this, because
> it meens to call the batch itself (like $0 in bash-scripts). There must
> be a possibility to exclude "%" from the resulting hash values. Perhaps
> other special characters, like "$§&..." could leed to faults too.

How about

	mangling chr = ^
 
> I've changed the hash mathod to "hash2":
>      mangling method = hash2
> but doesn't help.
> 
> For our special case if inserted a mangled map:
>        mangled map = (Only_for_generation Only_~01)

This is probably suffering from bit rot so I wouldn't use it unless 
you are willing to debug it.






cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+P17yIR7qMdg1EfYRAjr4AKDf540Svx/0QJgVYUABSb9CNSJToQCgq9Zu
0CrqXrHgx8+HbkPCbPKnjDw=
=Fslz
-----END PGP SIGNATURE-----



More information about the samba mailing list