Problem with getlmhostsent()

Jeremy Allison jallison at cthulhu.engr.sgi.com
Mon Dec 14 20:16:54 GMT 1998


Andrej Borsenkow wrote:
> 
> getlmhostsent() starts off setting name_type = -1, and changes it only if
> name type is explicitly given in lmhosts. Unfortunately, the most common
> case is
> 
> address   NB-name
> 
> and you don't suppose, all users know NB name types :))
> 

Yes you are correct. lmhosts lookup is somewhat useless as
the code stands.

> I suggest either return as default whatever type is appropriate for single
> host _or_ modify resolve_lmhosts() to match if returned type == -1. The
> later is more consistent with manual.

That's what I've done (match on -1 for lmhosts) in
the code now. It'll be in beta4.

Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-technical mailing list