Bug 188562

Summary: getaddrinfo() fails if nsswitch.conf contains 'files nisplus dns'
Product: [Fedora] Fedora Reporter: Avi Kivity <avi>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-11 09:23:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Avi Kivity 2006-04-11 09:17:50 UTC
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): 
 
glibc-2.4-4 
 
How reproducible: 
 
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:: 
 
   
Actual results: 
 
rsync complains 
 
Expected results: 
 
rsync lists hosts 
 
Additional info: 
 
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.

Comment 1 Jakub Jelinek 2006-04-11 09:23:33 UTC

*** This bug has been marked as a duplicate of 186592 ***