This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4702] New: getpwent, setwpent and endpwent fail if there is no /etc/default/nss file
- From: "jurek at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 26 Jun 2007 20:42:52 -0000
- Subject: [Bug libc/4702] New: getpwent, setwpent and endpwent fail if there is no /etc/default/nss file
- Reply-to: sourceware-bugzilla at sourceware dot org
setpwent, getpwent and endpwent fail with errno == ENOENT when there is no
/etc/default/nss. Output from strace:
open("/etc/default/nss", O_RDONLY) = -1 ENOENT (No such file or directory)
My nsswitch.conf:
passwd: compat
shadow: compat
group: compat
# passwd: db files nis
# shadow: db files nis
# group: db files nis
hosts: files dns
networks: files dns
services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files
output from /lib/libc.so.6:
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 (Gentoo 4.1.2).
Compiled on a Linux 2.6.17 system on 2007-05-30.
Available extensions:
C stubs add-on version 2.1.2
crypt add-on version 2.1 by Michael Glad and others
Gentoo patchset 1.7
GNU Libidn by Simon Josefsson
GNU libio by Per Bothner
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Native POSIX Threads Library by Ulrich Drepper et al
Support for some architectures added on, not maintained in glibc core.
BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
--
Summary: getpwent, setwpent and endpwent fail if there is no
/etc/default/nss file
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: jurek at gentoo dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4702
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.