From 23457259675d4a21f6840a30e2b41014540eab2d Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 17 Jan 2002 06:26:05 +0000 Subject: * Added /etc/shadow support (Config selectable) * Moved some file paths from code into --- libc/pwd_grp/pwent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/pwd_grp/pwent.c') diff --git a/libc/pwd_grp/pwent.c b/libc/pwd_grp/pwent.c index e4a17e2b3..804bd8957 100644 --- a/libc/pwd_grp/pwent.c +++ b/libc/pwd_grp/pwent.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "config.h" /* @@ -43,7 +44,7 @@ void setpwent(void) if (pw_fd != -1) close(pw_fd); - pw_fd = open("/etc/passwd", O_RDONLY); + pw_fd = open(_PATH_PASSWD, O_RDONLY); } void endpwent(void) -- cgit v1.2.3