Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
	return 0 for success but always < 0 on failure.
  • Loading branch information
Ulrich Drepper committed Aug 30, 2000
1 parent 3dc4a54 commit db7dc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db7dc81

Please sign in to comment.