From db7dc81100c128593c20083e3891fc05941729bf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 30 Aug 2000 18:28:16 +0000 Subject: Update. * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere return 0 for success but always < 0 on failure. --- sysdeps/posix/getaddrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/posix') diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 17d27e7..fdd8729 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) -- cgit v1.1