NetBSD Problem Report #685
From gnats Tue Jan 3 01:29:52 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id BAA21269 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 3 Jan 1995 01:29:51 -0800
Message-Id: <199501030932.UAA06792@splode.mame.mu.OZ.AU>
Date: Tue, 3 Jan 1995 20:32:17 +1100
From: matthew green <mrg@splode.mame.mu.OZ.AU>
Reply-To: mrg@splode.mame.mu.OZ.AU
To: gnats-bugs@NetBSD.ORG
Subject: getpw*(3) is wrong about location of db files.
X-Send-Pr-Version: 3.2
>Number: 685
>Category: lib
>Synopsis: getpw*(3) has wrong location of db files.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 03 01:35:00 +0000 1995
>Closed-Date: Tue Jan 03 07:57:56 +0000 1995
>Last-Modified:
>Originator: matthew green
>Release: 1st jan, 1995.
>Organization:
bozotic softwar foundation.
>Environment:
System: NetBSD splode.mame.mu.OZ.AU 1.0A NetBSD 1.0A (_splode_) #111: Sat Dec 31 16:21:06 EST 1994 mrg@splode.mame.mu.OZ.AU:/splode/build/src/sys/arch/sparc/compile/_splode_ sparc
>Description:
getpwuid(3) and getpwnam(3) say the password databases are kept in
/var/db/pwd.db and /var/db/spwd.db, but they are in /etc
>How-To-Repeat:
man getpwuid
>Fix:
Index: src/lib/libc/gen/getpwent.3
*** getpwent.3.orig Tue Jan 3 20:30:56 1995
--- getpwent.3 Tue Jan 3 20:31:08 1995
***************
*** 153,161 ****
have no return value.
.Sh FILES
.Bl -tag -width /etc/master.passwd -compact
! .It Pa /var/db/pwd.db
The insecure password database file
! .It Pa /var/db/spwd.db
The secure password database file
.It Pa /etc/master.passwd
The current password file
--- 153,161 ----
have no return value.
.Sh FILES
.Bl -tag -width /etc/master.passwd -compact
! .It Pa /etc/pwd.db
The insecure password database file
! .It Pa /etc/spwd.db
The secure password database file
.It Pa /etc/master.passwd
The current password file
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Tue Jan 3 07:57:56 1995
State-Changed-Why:
Patch applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.