Update.
* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere return 0 for success but always < 0 on failure.
This commit is contained in:
parent
3dc4a54419
commit
db7dc81100
|
@ -1,5 +1,8 @@
|
||||||
2000-08-30 Ulrich Drepper <drepper@redhat.com>
|
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
|
* nss/getXXbyYY_r.c: Define result to *result before including
|
||||||
digits_dots.c.
|
digits_dots.c.
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ gaih_local (const char *name, const struct gaih_service *service,
|
||||||
return GAIH_OKIFUNSPEC | -EAI_NONAME;
|
return GAIH_OKIFUNSPEC | -EAI_NONAME;
|
||||||
|
|
||||||
if ((name != NULL) || (req->ai_flags & AI_CANONNAME))
|
if ((name != NULL) || (req->ai_flags & AI_CANONNAME))
|
||||||
if (uname (&utsname))
|
if (uname (&utsname) < 0)
|
||||||
return -EAI_SYSTEM;
|
return -EAI_SYSTEM;
|
||||||
|
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
|
|
Loading…
Reference in New Issue