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/grent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/pwd_grp/grent.c') diff --git a/libc/pwd_grp/grent.c b/libc/pwd_grp/grent.c index 8e4af5143..973213f83 100644 --- a/libc/pwd_grp/grent.c +++ b/libc/pwd_grp/grent.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "config.h" static int grp_fd = -1; @@ -35,7 +36,7 @@ void setgrent(void) { if (grp_fd != -1) close(grp_fd); - grp_fd = open("/etc/group", O_RDONLY); + grp_fd = open(_PATH_GROUP, O_RDONLY); } void endgrent(void) -- cgit v1.2.3