summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/pwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/pwent.c')
-rw-r--r--libc/pwd_grp/pwent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/pwd_grp/pwent.c b/libc/pwd_grp/pwent.c
index e4a17e2b3..804bd8957 100644
--- a/libc/pwd_grp/pwent.c
+++ b/libc/pwd_grp/pwent.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <pwd.h>
#include <fcntl.h>
+#include <paths.h>
#include "config.h"
/*
@@ -43,7 +44,7 @@ void setpwent(void)
if (pw_fd != -1)
close(pw_fd);
- pw_fd = open("/etc/passwd", O_RDONLY);
+ pw_fd = open(_PATH_PASSWD, O_RDONLY);
}
void endpwent(void)