Red Hat Bugzilla – Bug 188562
getaddrinfo() fails if nsswitch.conf contains 'files nisplus dns'
Last modified: 2007-11-30 17:11:30 EST
Description of problem:
rsync uses getaddrinfo to determine the ip of the remote host name.
if /etc/nsswitch.conf contains the line
hosts: files nisplus dns
then rsync will fail in getaddrinfo(). other programs (host, ping) succeed.
Version-Release number of selected component (if applicable):
always, but a test program does not manage to reproduce.
Steps to Reproduce:
1. sed -i 's/^hosts.*/hosts: files nisplus dns' /etc/nsswitch.conf
2. rsync distro.ibiblio.org::
rsync lists hosts
some debugging showed that the hosts line is mis-parsed, but I'm not sure.
strace -e trace=open shows that the dns module is never loaded.
the problem occurs on i386 and x86_64.
*** This bug has been marked as a duplicate of 186592 ***