[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#482973: libc6: gethostbyname() fails on IPv4 addresses with hex components



On Wed, May 28, 2008 at 9:07 PM, Clint Adams <schizo@debian.org> wrote:
> On Mon, May 26, 2008 at 11:10:46AM +0100, Stephane Chazelas wrote:
>> That breaks POSIX conformance. As per POSIX, gethostbyname()
>> should recognise the same IPv4 address notations as inet_addr().
>> The spec for inet_addr() gives:
>
> Technically, POSIX marks it as Obsolescent and says that you shall not
> use it, so I don't know if you can make that claim.

Sorry, but that is not right.  The fact that an interface is marked as
obsolescent has no relevance as to whether it should conform to
specified behavior.

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html



Reply to: