aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-29 20:17:33 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-29 20:17:33 +0000
commit95479dc273d889da860a94fc28cb5683d98189e1 (patch)
treed2ee33858b4b2e6f100e05b29fc9cf8ccbfb6bd5 /nss
parent0b3b45f937d8849f8f3655c4b970cd955ad7a894 (diff)
downloadglibc-95479dc273d889da860a94fc28cb5683d98189e1.zip
glibc-95479dc273d889da860a94fc28cb5683d98189e1.tar.gz
glibc-95479dc273d889da860a94fc28cb5683d98189e1.tar.bz2
Update.
2004-03-29 Ulrich Drepper <drepper@redhat.com> * nss/getXXbyYY_r.c: Return 0 for NSS_STATUS_NOTFOUND.
Diffstat (limited to 'nss')
-rw-r--r--nss/getXXbyYY_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 999df41..b17f33c 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -246,7 +246,7 @@ done:
#endif
int res;
- if (status == NSS_STATUS_SUCCESS)
+ if (status == NSS_STATUS_SUCCESS || status == NSS_STATUS_NOTFOUND)
res = 0;
/* Don't pass back ERANGE if this is not for a too-small buffer. */
else if (errno == ERANGE && status != NSS_STATUS_TRYAGAIN)