[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#32370: marked as done (libc6: getpwent() returns each user twice when using "passwd: db files" in nsswitch)



Your message dated Fri, 17 Sep 1999 13:04:35 -0700
with message-id <v0420552ab4084f20fdef@[206.163.71.146]>
and subject line Closing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 25 Jan 1999 11:18:00 +0000
Received: (qmail 19732 invoked from network); 25 Jan 1999 11:17:59 -0000
Received: from unknown (HELO coker.com.au) (193.120.105.207)
  by master.debian.org with SMTP; 25 Jan 1999 11:17:59 -0000
Received: (qmail 11288 invoked by uid 1001); 25 Jan 1999 00:38:04 -0000
Date: 25 Jan 1999 00:38:03 -0000
Message-ID: <19990125003803.11287.qmail@coker.com.au>
From: Russell Coker <rjc@coker.com.au>
Subject: libc6: getpwent() returns each user twice when using "passwd: db files" in nsswitch
To: submit@bugs.debian.org
X-Mailer: bug 3.1.7

Package: libc6
Version: 2.0.7.19981211-2

Run the following program with "passwd: db files" in /etc/nsswitch.conf and
every user will be listed twice.  Run it with just "db" or just "files" and
every user will only appear once.

#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>

int main()
{
          struct passwd *ps;
          setpwent();
          for( ps = getpwent(); ps ; ) {
                   printf("name is \"%s\"\n", ps->pw_name);
               ps = getpwent();
          }
          endpwent();
	return 0;
}


-- System Information
Debian Release: 2.1
Kernel Version: Linux lyta 2.2.0-final #1 Thu Jan 21 10:15:26 GMT 1999 i586 unknown

Versions of the packages libc6 depends on:
ii  ldso            1.9.10-1       The Linux dynamic linker, library and utilit


Reply to: