summaryrefslogtreecommitdiff
path: root/libc/pwd_grp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r--libc/pwd_grp/__getpwent_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/pwd_grp/__getpwent_r.c b/libc/pwd_grp/__getpwent_r.c
index 7614b7edf..ae9c187d8 100644
--- a/libc/pwd_grp/__getpwent_r.c
+++ b/libc/pwd_grp/__getpwent_r.c
@@ -47,7 +47,7 @@ int __getpwent_r(struct passwd * passwd, char * line_buff, size_t buflen, int pw
return ERANGE;
}
- if (pw_fd == -1)
+ if (pwd_fd == -1)
setpwent();
/* We use the restart label to handle malformatted lines */