projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
semtimedop: add time64 syscall support, decouple 32-bit time_t
[musl]
/
src
/
passwd
/
getpwent_a.c
diff --git
a/src/passwd/getpwent_a.c
b/src/passwd/getpwent_a.c
index
4d84f0d
..
d1b4b53
100644
(file)
--- a/
src/passwd/getpwent_a.c
+++ b/
src/passwd/getpwent_a.c
@@
-17,7
+17,7
@@
int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct p
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
for (;;) {
if ((l=getline(line, size, f)) < 0) {
- rv =
errno
;
+ rv =
ferror(f) ? errno : 0
;
free(*line);
*line = 0;
pw = 0;