summaryrefslogtreecommitdiff
path: root/libc/nscd/nscd_getpw_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/nscd/nscd_getpw_r.c')
-rw-r--r--libc/nscd/nscd_getpw_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/nscd/nscd_getpw_r.c b/libc/nscd/nscd_getpw_r.c
index b84baa1a6..21f792bb4 100644
--- a/libc/nscd/nscd_getpw_r.c
+++ b/libc/nscd/nscd_getpw_r.c
@@ -211,8 +211,8 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type,
}
else
{
- /* The `errno' to some value != ERANGE. */
- __set_errno (ENOENT);
+ /* Set errno to 0 to indicate no error, just no found record. */
+ __set_errno (0);
/* Even though we have not found anything, the result is zero. */
retval = 0;
}