summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/getgrgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/getgrgid.c')
-rw-r--r--libc/pwd_grp/getgrgid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/pwd_grp/getgrgid.c b/libc/pwd_grp/getgrgid.c
index 70e7152ce..f41e305ef 100644
--- a/libc/pwd_grp/getgrgid.c
+++ b/libc/pwd_grp/getgrgid.c
@@ -22,6 +22,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <grp.h>
+#include <paths.h>
#include "config.h"
struct group *getgrgid(const gid_t gid)
@@ -29,7 +30,7 @@ struct group *getgrgid(const gid_t gid)
struct group *group;
int grp_fd;
- if ((grp_fd = open("/etc/group", O_RDONLY)) < 0)
+ if ((grp_fd = open(_PATH_GROUP, O_RDONLY)) < 0)
return NULL;
while ((group = __getgrent(grp_fd)) != NULL)