Re: Possible /etc/hosts parsing bug?

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Mon, 18 Nov 1996 13:50:46 +0000 (GMT)


On Sun, 17 Nov 1996, Matthew Jacob wrote:

>
> Heh. Leading 0 means 'decode as octal'. Octal 016 equal decimal 14. Heh.
> Try adding a leading 0x for even more fun.
>
> Gee, I dunno about whether /etc/hosts numbers are implicit
> decimal or not- I suspect so, but still, I would call it
> a bug to user strtol with an implicit base.
>
[rest sniped]

I don't think it's a bug, as ping 0xac100201 works fine (172.16.2.1), well
I havn't tested that address, but I have pinged 0x9e98a6f6 (me ;).

Bryn

--
PGP key pass phrase forgotten,   \ Overload -- core meltdown sequence 
again :( and I don't care ;)      |            initiated.
                                 / This space is intentionally left   
                                |  blank, apart from this text ;-)
                                 \____________________________________