Bug 513698 - [PATCH] getaddrinfo uses wrong NSS status when module not found
Summary: [PATCH] getaddrinfo uses wrong NSS status when module not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-24 20:38 UTC by Bill Nottingham
Modified: 2016-11-24 12:43 UTC (History)
5 users (show)

Fixed In Version: 2.10.1-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-10 21:50:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
If we cannot find the function to call, set status to NSS_STATUS_UNVAIL (632 bytes, patch)
2009-07-24 20:38 UTC, Bill Nottingham
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Sourceware 10448 0 None None None Never

Description Bill Nottingham 2009-07-24 20:38:53 UTC
Created attachment 355093 [details]
If we cannot find the function to call, set status to NSS_STATUS_UNVAIL

Description of problem:

If you have a NSS module that does not exist, getaddrinfo uses the status of the prior module in the chain for determining the next action.

Version-Release number of selected component (if applicable):

F11 GA, also rawhide. Probably older releases as well

How reproducible:

100%

Steps to Reproduce:
1. Change the hosts line to "hosts: files frobozz [NOTFOUND=return] dns
2. Do a host lookup with getaddrinfo of something not in /etc/hosts
  
Actual results:

glibc attempts to use libnss_frobozz, fails, but uses the NOTFOUND status from libnss_files to determine the next action.

Expected results:

glibc attempts to use libnss_frobozz, fails, and uses an appropriate status to determine the next action.

Comment 1 Fedora Update System 2009-08-03 08:52:07 UTC
glibc-2.10.1-3 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/glibc-2.10.1-3

Comment 2 Fedora Update System 2009-08-03 19:26:01 UTC
glibc-2.10.1-3 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glibc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8250

Comment 3 Fedora Update System 2009-08-05 00:30:47 UTC
glibc-2.10.1-4 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glibc'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8250

Comment 4 Fedora Update System 2009-08-10 21:50:22 UTC
glibc-2.10.1-4 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


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