Bug 10448 - nsswitch.conf: NOTFOUND instead of UNAVAIL is returned when an NSS module is not available
Summary: nsswitch.conf: NOTFOUND instead of UNAVAIL is returned when an NSS module is ...
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 17:54 UTC by Aurelien Jarno
Modified: 2014-07-01 07:34 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments
Patch to fix the problem (339 bytes, patch)
2009-07-25 17:54 UTC, Aurelien Jarno
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2009-07-25 17:54:24 UTC
If /etc/nsswitch.conf contains a modules with "[NOTFOUND=return]", and that 
module is not available (dlopen() fails), the action is actually returned. This 
is due to the fact NOTFOUND is returned if dlopen() fails instead of UNAVAIL.

Patch will follow.
Comment 1 Aurelien Jarno 2009-07-25 17:54:49 UTC
Created attachment 4086 [details]
Patch to fix the problem
Comment 2 Ulrich Drepper 2009-07-25 19:30:38 UTC
The patch is wrong.  I checked in a correct one.