Hi,
we were having a discussion in the comp.unix.programmer Usenet newsgroup,
starting with Message-ID:
<e8e1cb1d-9693-4803-bf29-b4828de384e0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>.
Consequently, I'd like to report two bugs (in separate e-mails):
(2/2) gethostbyname(3) fails to resolve the IPv6 address "::1", but the
manual page says: "If name is an IPv4 or IPv6 address, no lookup is
performed and gethostbyname() simply copies name into the h_name field
[...]".
Debian bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455762
glibc bug report:
http://sourceware.org/bugzilla/show_bug.cgi?id=5479
SUSv3 link for gethostbyname(3):
http://www.opengroup.org/onlinepubs/000095399/functions/gethostbyname.html
It seems that the glibc behavior is conformant, and the manual page is in
error.
I'm using the manpages-dev package, version 3.05-1, under Debian Lenny.
However, before sending this report, I've verified the bug's existence in
the online page under
http://www.kernel.org/doc/man-pages/online/pages/man3/gethostbyname.3.html
If this goes anywhere on linux-man@vger, please keep me CC'd.
Thank you very much,
lacos
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html