Subject: Re: lib/8314
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Ignatios Souvatzis <is@jocelyn.cs.uni-bonn.de>
List: tech-userlevel
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 3.3.3.3
inet_addr(3.3.3.3) = 0x3030303, 3.3.3.3
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.

	-is