mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
1999-06-28 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/gethostid.c: Test for gethostbyname_r function correctly. * sunrpc/getrpcport.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_simp.c: Test for gethostbyname_r function correctly. * sunrpc/clnt_gen.c: Test for gethostbyname_r and getprotobyname_r functions correctly. * inet/rexec.c (rexec): Test for gethostbyname_r result correctly. * inet/rcmd.c: Test for gethostbyname_r result correctly. Optimize file reading a bit. * sysdeps/generic/glob.c: Test for getpwnam_r result correctly. 1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/string.texi (Copying and Concatenation): Mention that strndup is a GNU extension. 1999-06-28 Andreas Jaeger <aj@arthur.rhein-neckar.de> * pwd/getpw.c (__getpw): Fix check for error return.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
@ -91,7 +91,7 @@ gethostid ()
|
||||
|
||||
/* To get the IP address we need to know the host name. */
|
||||
while (__gethostbyname_r (hostname, &hostbuf, buffer, buflen, &hp, &herr)
|
||||
< 0)
|
||||
!= 0)
|
||||
if (herr != NETDB_INTERNAL || errno != ERANGE)
|
||||
return 0;
|
||||
else
|
||||
|
Reference in New Issue
Block a user