diff options
Diffstat (limited to 'libc/pwd_grp/initgroups.c')
-rw-r--r-- | libc/pwd_grp/initgroups.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/pwd_grp/initgroups.c b/libc/pwd_grp/initgroups.c index 04de22632..87a6b569d 100644 --- a/libc/pwd_grp/initgroups.c +++ b/libc/pwd_grp/initgroups.c @@ -22,6 +22,7 @@ #include <string.h> #include <fcntl.h> #include <grp.h> +#include <paths.h> #include "config.h" int initgroups(__const char *user, gid_t gid) @@ -38,7 +39,7 @@ int initgroups(__const char *user, gid_t gid) int grp_fd; - if ((grp_fd = open("/etc/group", O_RDONLY)) < 0) + if ((grp_fd = open(_PATH_GROUP, O_RDONLY)) < 0) return -1; num_groups = 0; |