Problem with getlmhostsent()

Andrej Borsenkow borsenkow.msk at sni.de
Fri Dec 11 10:57:10 GMT 1998


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 :))

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.

/andrej



More information about the samba-technical mailing list