Using the '.' in names.

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


herb at samba.org wrote:
> 
> Date:   Fri Mar 12 21:35:15 2004
> Author: herb
> 
> Update of /data/cvs/samba/source/libsmb
> In directory dp.samba.org:/tmp/cvs-serv24318/libsmb
> 
> 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                1.68.2.12 => 1.68.2.13
>

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 -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the samba-cvs mailing list