[REVIEW NWRAP] Remove the localhost shortcut.

Andreas Schneider asn at cryptomilk.org
Thu Jan 30 10:12:30 MST 2014


I need a review for:


The idea was to take a shortcut if we have localhost address, any address or 
broadcast. It turned out that this causes a bug with 'getent ahosts 
<myhostname> if you have the libnss_myhostname.so module loaded. It returned instead of the entry in your hosts file.

So we need to remove that code.

FYI: libnss_myhostname() does a connect to and ::1 and calls 
getsockname() afterwards.


	-- andreas

Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn at cryptomilk.org

More information about the samba-technical mailing list