projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp: optimize x86 longjmp epilogues
[musl]
/
src
/
passwd
/
getpw_a.c
diff --git
a/src/passwd/getpw_a.c
b/src/passwd/getpw_a.c
index
b04663d
..
15a70c0
100644
(file)
--- a/
src/passwd/getpw_a.c
+++ b/
src/passwd/getpw_a.c
@@
-64,7
+64,6
@@
int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t
f = __nscd_query(req, key, passwdbuf, sizeof passwdbuf, (int[]){0});
if (!f) { rv = errno; goto done; }
f = __nscd_query(req, key, passwdbuf, sizeof passwdbuf, (int[]){0});
if (!f) { rv = errno; goto done; }
- if (f == (FILE*)-1) { rv = 0; goto done; }
if(!passwdbuf[PWFOUND]) { rv = 0; goto cleanup_f; }
if(!passwdbuf[PWFOUND]) { rv = 0; goto cleanup_f; }