aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-30 18:28:16 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-30 18:28:16 +0000
commitdb7dc81100c128593c20083e3891fc05941729bf (patch)
treef9e9de37dcfc3dddfe222339a43e05f24bc4f1bd
parent3dc4a544191fa1592ba9fe9c5600f9853b869ff8 (diff)
downloadglibc-db7dc81100c128593c20083e3891fc05941729bf.tar
glibc-db7dc81100c128593c20083e3891fc05941729bf.tar.gz
glibc-db7dc81100c128593c20083e3891fc05941729bf.tar.bz2
glibc-db7dc81100c128593c20083e3891fc05941729bf.zip
Update.
* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere return 0 for success but always < 0 on failure.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/posix/getaddrinfo.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1caad3009d..1eee99e1d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2000-08-30 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
+ return 0 for success but always < 0 on failure.
+
* nss/getXXbyYY_r.c: Define result to *result before including
digits_dots.c.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 17d27e786e..fdd8729657 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -130,7 +130,7 @@ gaih_local (const char *name, const struct gaih_service *service,
return GAIH_OKIFUNSPEC | -EAI_NONAME;
if ((name != NULL) || (req->ai_flags & AI_CANONNAME))
- if (uname (&utsname))
+ if (uname (&utsname) < 0)
return -EAI_SYSTEM;
if (name != NULL)