instead of always EAGAIN when status is NSS_STATUS_TRYAGAIN.
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.
POSTPROCESS;
#endif
return (status == NSS_STATUS_SUCCESS
- ? 0 : (status == NSS_STATUS_TRYAGAIN ? EAGAIN : ENOENT));
+ ? 0 : (status == NSS_STATUS_TRYAGAIN ? errno : ENOENT));
}