Mangled name collisions

Jonathan Rozes jrozes+953348136.3613929516 at vinton.com
Sat Mar 18 02:55:34 GMT 2000


Hi,

This is with samba 2.0.6 running under IRIX 6.4, compiled with the MIPSpro
7.3 C compiler, all optimizations turned off.

Create the following files in an empty folder:

foobar001.dat
foobar002.dat
foobar020.dat
foobar040.dat
foobar400.dat
foobar800.dat

The name mangling will produce collisions as follows:

foobar001.dat -> FOOBA~NH.DAT
foobar020.dat -> FOOBA~NH.DAT
foobar400.dat -> FOOBA~NH.DAT

foobar002.dat -> FOOBA~5N.DAT
foobar040.dat -> FOOBA~5N.DAT
foobar800.dat -> FOOBA~5N.DAT

By contrast, NT4 does not preserve name mappings (the same long filename
will not always map to the same DOS name), but has no problem maintaining
uniqueness.

As it is pretty common to name files this way, I think maybe the
str_checksum() and/or mangle_name_83() functions could use some
improvement/fixing.

Or is my compiler horribly broken?

Thanks,
jonathan

+++ Jonathan Rozes, System Administrator, Will Vinton Studios






More information about the samba mailing list