diff options
Diffstat (limited to 'libc/pwd_grp/getgrnam.c')
-rw-r--r-- | libc/pwd_grp/getgrnam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/pwd_grp/getgrnam.c b/libc/pwd_grp/getgrnam.c index 705342489..77301797c 100644 --- a/libc/pwd_grp/getgrnam.c +++ b/libc/pwd_grp/getgrnam.c @@ -23,6 +23,7 @@ #include <errno.h> #include <fcntl.h> #include <grp.h> +#include <paths.h> #include "config.h" struct group *getgrnam(const char *name) @@ -35,7 +36,7 @@ struct group *getgrnam(const char *name) return NULL; } - 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) |