This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/11928] New: nscd does not account for 'multi on' in /etc/host.conf when ai-resolving hosts


When nscd is handling getaddrinfo() resolution requests, it fails to properly
initialize its resolver options state and ignores /etc/host.conf. An easy way to
reproduce this is by putting 'multi on' in /etc/host.conf and

cat >>/etc/host.conf <<EOT
1.2.3.4 test
1.2.3.5 test
EOT

Then, with nscd stopped:
$ getent ahosts test
1.2.3.4         STREAM test
1.2.3.4         DGRAM  
1.2.3.4         RAW    
1.2.3.5         STREAM 
1.2.3.5         DGRAM  
1.2.3.5         RAW    

However, with nscd running:
$ getent ahosts test
1.2.3.4         STREAM test
1.2.3.4         DGRAM  
1.2.3.4         RAW

-- 
           Summary: nscd does not account for 'multi on' in /etc/host.conf
                    when ai-resolving hosts
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11928

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]