summaryrefslogtreecommitdiff
path: root/libpwdgrp/pwd_grp_internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpwdgrp/pwd_grp_internal.c')
-rw-r--r--libpwdgrp/pwd_grp_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpwdgrp/pwd_grp_internal.c b/libpwdgrp/pwd_grp_internal.c
index d55edc3..ffdc85e 100644
--- a/libpwdgrp/pwd_grp_internal.c
+++ b/libpwdgrp/pwd_grp_internal.c
@@ -32,7 +32,7 @@ int GETXXKEY_R_FUNC(GETXXKEY_R_KEYTYPE key,
*result = NULL;
- stream = fopen(GETXXKEY_R_PATHNAME, "r");
+ stream = fopen_for_read(GETXXKEY_R_PATHNAME);
if (!stream)
return errno;
while (1) {