summaryrefslogtreecommitdiff
path: root/libpwdgrp/getpwnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpwdgrp/getpwnam.c')
-rw-r--r--libpwdgrp/getpwnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/getpwnam.c b/libpwdgrp/getpwnam.c
index 524fa09..013f155 100644
--- a/libpwdgrp/getpwnam.c
+++ b/libpwdgrp/getpwnam.c
@@ -37,7 +37,7 @@ struct passwd *getpwnam(const char *name)
return NULL;
}
- 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)