* nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
authorRoland McGrath <roland@gnu.org>
Thu, 12 Sep 2002 01:38:22 +0000 (01:38 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 12 Sep 2002 01:38:22 +0000 (01:38 +0000)
instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.

ChangeLog
nss/getXXbyYY_r.c

index 5d6a1cb..b3f7436 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-09-11  Roland McGrath  <roland@redhat.com>
 
+       * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno
+       instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
+
        * sysdeps/generic/dl-environ.c (unsetenv): Redo last fix without
        strncmp, keeps the code smaller for a non-performance-critical case.
 
index 630cea4..58cf293 100644 (file)
@@ -243,7 +243,7 @@ done:
   POSTPROCESS;
 #endif
   return (status == NSS_STATUS_SUCCESS
-         ? 0 : (status == NSS_STATUS_TRYAGAIN ? EAGAIN : ENOENT));
+         ? 0 : (status == NSS_STATUS_TRYAGAIN ? errno : ENOENT));
 }