proposal for changing name mangling.

Michel Stoop stoop at ncg.nl
Fri Feb 15 01:21:17 GMT 2002


I have again ran into troubles with duplicate mangled names under W2k.
We have some model libraries wich contain more than 4000 files
with simmilair names. (like gatkr160x400.mod).
Now when I type in a cmd prompt: del gat*.mod I get some errors.
After some research I saw that the delete command builds it file list
on the mangled name. I assume to save memory...
What I also saw that when I copy these files to a NT server I get
mangled names consisting of the 2 first characters in uppercase, then
a 4 character hex value, then the mangling char and a number.
This gave me the idea to change the way samba mangles names to match
what W2k produces. So I did some work on smbd/mangle.c
With the currrent name mangling of samba I got up to 6 equal mangled
names for different files, but now I get only unique names.

So in the current version the file gatkr160x400.mod would be mangled
to GATKR~9 at .MOD, but now it becomes GA494F~6.MOD
Now I have included a diff file for samba-2.2.3a and want to ask if someone
wants to look at it. And I want to know what the samba team thinks about
changing the way names are mangled and how it should be implemented.

---
Michel Stoop,

Senior Network and Systems Administrator
postmaster for ncg.nl, ccggron.nl and centralindustrygroup.com
Numeriek Centrum Groningen B.V. Shipbuilding Services
Postbus 204
9700AE Groningen
+31 (0)50 541 26 32  fax: +31 (0)50 542 37 17
http://www.ncg.nl
mailto:stoop at ncg.nl
---
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mangle.diff
Type: application/octet-stream
Size: 3251 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020215/d34facef/mangle.obj


More information about the samba-technical mailing list