summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/grent.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 06:26:05 +0000
committerDavid McCullough <davidm@snapgear.com>2002-01-17 06:26:05 +0000
commit23457259675d4a21f6840a30e2b41014540eab2d (patch)
tree1e29e4b02bd95566e6aea0205d4e8b564c5ce853 /libc/pwd_grp/grent.c
parent47e0a8060499c822772437a3ca1765297857c131 (diff)
* Added /etc/shadow support (Config selectable)
* Moved some file paths from code into <paths.h>
Diffstat (limited to 'libc/pwd_grp/grent.c')
-rw-r--r--libc/pwd_grp/grent.c3
1 files changed, 2 insertions, 1 deletions
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 <unistd.h>
#include <fcntl.h>
#include <grp.h>
+#include <paths.h>
#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)