Subject: misc/14914: Honor a macro, _PATH_PASSWD (very slight modification)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@soum.co.jp>
List: netbsd-bugs
Date: 12/11/2001 22:25:45
>Number: 14914
>Category: misc
>Synopsis: Honor a macro, _PATH_PASSWD (very slight modification)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Dec 11 05:24:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: NetBSD 1.5.2
>Organization:
SOUM Corporation
>Environment:
System: NetBSD sebastes.soum.co.jp 1.5.2 NetBSD 1.5.2 (SEBASTES) #0: Fri Nov 2 20:03:26 JST 2001 masao@sebastes.soum.co.jp:/usr/src_netbsd-1-5-PATCH002/sys/arch/i386/compile/SEBASTES i386
>Description:
I see that "/etc/passwd" is defined in pwd.h and pwd.h is included
in distrib/utils/libhack/getpwent.c. So simply use it.
>How-To-Repeat:
>Fix:
--- distrib/utils/libhack/getpwent.c.orig Sat Jun 16 02:26:51 2001
+++ distrib/utils/libhack/getpwent.c Tue Dec 11 22:20:04 2001
@@ -63,7 +63,7 @@
#define PWNULL (struct passwd *)0
#define MAXFIELD 8
-static char *pw_file = "/etc/passwd";
+static char *pw_file = _PATH_PASSWD;
static FILE *pw_fp;
static char pw_line[128];
static struct passwd pw_ent;
>Release-Note:
>Audit-Trail:
>Unformatted: