Subject: Re: lib/8314
To: Patrick Welche <firstname.lastname@example.org>
From: Ignatios Souvatzis <email@example.com>
Date: 10/28/1999 21:46:02
On Thu, Oct 28, 1999 at 08:38:23PM +0100, Patrick Welche wrote:
> Ignatios Souvatzis wrote:
> > is anything wrong with the patch I proposed in a followup to lib/8314
> > (invalid octal or hex numbers formerly not detected by inet_addr()?)
> I shouldn't think so, but I just tried SunOS 5.6, and it treats 099 as
> decimal 99!
I tried it a few days ago, and it created decimal 81. Let me test anew...
ignatios@theory 5 % gcc -o itest itest.c -lnsl
ignatios@theory 6 % ./itest 188.8.131.52
inet_addr(184.108.40.206) = 0x3030303, 220.127.116.11
ignatios@theory 7 % ./itest 099.099.099.099
inet_addr(099.099.099.099) = 0xffffffff, 255.255.255.255
ignatios@theory 8 % uname -a
SunOS theory 5.6 Generic_105181-06 sun4u sparc SUNW,Ultra-5_10
itest.c is the one from the PR.