Using the '.' in names.

Christopher R. Hertel crh at
Mon Mar 15 01:51:48 GMT 2004

herb at wrote:
> Date:   Fri Mar 12 21:35:15 2004
> Author: herb
> Update of /data/cvs/samba/source/libsmb
> In directory
> Modified Files:
>       Tag: SAMBA_3_0
>         nmblib.c
> Log Message:
> if we are truncating to the . we need to start at the beginning in case
> there are multiple "."'s in the name.
> This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this
> is #define'd to 1 directly above. Should we also get rid of the #ifdef?
> Revisions:
> nmblib.c       =>

Sure is an interesting bit of code and commentary.

The way the code reads, it truncates at the 'last' dot, not the first.
That may be the correct way to handle the problem.  As always, I think
you'ld need to see what Windows does.  Urg.

What's worse is that it may require seeing what happens with several flavors
of Windows.

Chris -)-----

"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team --     -)-----   Christopher R. Hertel
jCIFS Team --   -)-----   ubiqx development, uninq.
ubiqx Team --     -)-----   crh at
OnLineBook --    -)-----   crh at

More information about the samba-technical mailing list