Man Pages and code mismatches ... with respect to name mangling

Richard Sharpe rsharpe at
Sun Sep 1 08:08:00 GMT 2002

On Sun, 1 Sep 2002, Simo Sorce wrote:

> We should update the man page with description on different mangling
> methods. Simo.

Well, we should, but the fact that any extension longer than 3 characters 
is removed entirely seems counter intuitive. That decision should be 
revisited, I think.
> On Sat, 2002-08-31 at 23:44, Richard Sharpe wrote:
> > Hi,
> > 
> > I notice that the code (at least for mangling method = hash2) does 
> > different things to what the man pages claim.
> > 
> > Man pages say that if the file starts with a leading ., it is replaced 
> > with three underscores. Either Ethereal can't count, or they are not. Only 
> > one is placed there. In addition, it seems that more characters than a 
> > leading . (dot) are replaced by a single underscore. For example, the # 
> > character (known as pound or hash) is also replaced by a single 
> > underscore.
> > 
> > Secondly, the man pages claim that the first three characters of the 
> > extension (after the right most period) are forced to upper case etc. What 
> > it omits to say is that this only true if the extension consists of three 
> > or less characters. If there are more than five characters in the 
> > extension, well, they get lost.

Richard Sharpe, rsharpe at, rsharpe at, 
sharpe at

More information about the samba-technical mailing list