[REVIEW NWRAP] Remove the localhost shortcut.

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


Hi,

I need a review for:

http://git.cryptomilk.org/projects/nss_wrapper.git/commit/?h=fix

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 
127.0.0.2 instead of the entry in your hosts file.

So we need to remove that code.


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


Thanks,


	-- andreas



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



More information about the samba-technical mailing list