lkml.org 
[lkml]   [1996]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Possible /etc/hosts parsing bug?

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 ;-)
\____________________________________


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.234 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site