Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 188562 - getaddrinfo() fails if nsswitch.conf contains 'files nisplus dns'
getaddrinfo() fails if nsswitch.conf contains 'files nisplus dns'
Status: CLOSED DUPLICATE of bug 186592
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-04-11 05:17 EDT by Avi Kivity
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-11 05:23:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Avi Kivity 2006-04-11 05:17:50 EDT
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): 
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 05:23:33 EDT

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

Note You need to log in before you can comment on or make changes to this bug.