* nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Return errno

instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
This commit is contained in:
Roland McGrath 2002-09-12 01:38:22 +00:00
parent 68b68cb3a4
commit f8494ee354
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View 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));
}