summaryrefslogtreecommitdiff
path: root/libpwdgrp/getpwuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpwdgrp/getpwuid.c')
-rw-r--r--libpwdgrp/getpwuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/getpwuid.c b/libpwdgrp/getpwuid.c
index 7a04b67..bae6e15 100644
--- a/libpwdgrp/getpwuid.c
+++ b/libpwdgrp/getpwuid.c
@@ -30,7 +30,7 @@ struct passwd *getpwuid(uid_t uid)
int passwd_fd;
struct passwd *passwd;
- if ((passwd_fd = open("/etc/passwd", O_RDONLY)) < 0)
+ if ((passwd_fd = open(bb_path_passwd_file, O_RDONLY)) < 0)
return NULL;
while ((passwd = __getpwent(passwd_fd)) != NULL)