(nscd_getpw_r): Set `errno' correctly if no entry is found.
authordrepper <drepper>
Sun, 14 Mar 1999 20:52:03 +0000 (20:52 +0000)
committerdrepper <drepper>
Sun, 14 Mar 1999 20:52:03 +0000 (20:52 +0000)
nscd/nscd_getpw_r.c

index 5050253..e0600cb 100644 (file)
@@ -177,6 +177,8 @@ nscd_getpw_r (const char *key, size_t keylen, request_type type,
   else
     {
       __close (sock);
+      /* The `errno' to some value != ERANGE.  */
+      __set_errno (ENOENT);
       return -1;
     }
 }