Bug: "mangling method = hash2" destroys "short preserve case = no"

Robert Dahlem Robert.Dahlem at siemens.com
Thu Mar 20 14:02:43 GMT 2003


Hi,

Try this with Samba 2.2.8:

	mangled names = no
	short preserve case = no
	default case = lower
	mangling method = hash


Samba Server				Windows XP
---------------------	--------------------------
							net use h: \\...\homes
							h:
							md xxx
							cd xxx
							echo Just testing >SHORT
$ cd ~/xxx
$ ls
short

This is what I expected. Now reconfigure:

	mangling method = hash2

and restart your smbd process.

Samba Server				Windows XP
---------------------	--------------------------
$ rm short
							echo Just testing >SHORT
$ cd ~/xxx
$ ls
SHORT

This is a bug: The file should not be named "SHORT" but "short".

I did not dive too deep into this, but it looks like is_8_3() in 
smbd/mangle_hash2.c does not check for slashes (it did so in 
smbd/mangle_hash.c).

Regards,
        Robert


-- 
Robert.Dahlem at siemens.com
Siemens Business Services -  SBS D ORS FS BO DEZ KORDOBA-Outsourcing
Tel: +49-69-797-6530  Fax: +49-69-797-6599
----------------------------------------------------------------------
Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email
software; far better than Outlook. Try it sometime.




More information about the samba-technical mailing list