Subject: bin/685: getpw*(3) is wrong about location of db files.
To: None <gnats-admin@NetBSD.ORG>
From: matthew green <mrg@splode.mame.mu.OZ.AU>
List: netbsd-bugs
Date: 01/03/1995 01:35:02
>Number:         685
>Category:       bin
>Synopsis:       getpw*(3) has wrong location of db files.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan  3 01:35:00 1995
>Originator:     matthew green
>Organization:
bozotic softwar foundation.
>Release:        1st jan, 1995.
>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
>Audit-Trail:
>Unformatted: