mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 15:00:06 +00:00
Update.
* sysdeps/posix/getaddrinfo.c (gaih_local): If name is given and AI_NUMERICHOST flag is set, return an error. Patch by Hideaki YOSHIFUJI <yoshfuji@ecei.tohoku.ac.jp>.
This commit is contained in:
parent
2d29aba941
commit
f1a785acbf
@ -1,5 +1,9 @@
|
||||
2000-01-17 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/posix/getaddrinfo.c (gaih_local): If name is given and
|
||||
AI_NUMERICHOST flag is set, return an error.
|
||||
Patch by Hideaki YOSHIFUJI <yoshfuji@ecei.tohoku.ac.jp>.
|
||||
|
||||
* inet/rcmd.c: Implement rcmd_af, rresvport_af, ruserok_af, and
|
||||
iruserok_af.
|
||||
* inet/rexec.c: Implement rexec_af.
|
||||
|
@ -124,6 +124,9 @@ gaih_local (const char *name, const struct gaih_service *service,
|
||||
{
|
||||
struct utsname utsname;
|
||||
|
||||
if ((name != NULL) && (req->ai_flags & AI_NUMERICHOST))
|
||||
return GAIH_OKIFUNSPEC | -EAI_NONAME;
|
||||
|
||||
if ((name != NULL) || (req->ai_flags & AI_CANONNAME))
|
||||
if (uname (&utsname))
|
||||
return -EAI_SYSTEM;
|
||||
|
Loading…
Reference in New Issue
Block a user