Resolver doesn't like 1.2.3.04 in /etc/hosts

Greg Black gjb at gbch.net
Wed Oct 26 17:11:06 PDT 2005


On 2005-10-26, Matt Emmerton wrote:
> > On 2005-10-26, Mark Andrews wrote:
> > > Leading zeros are ambigious.  Some platforms treat them as octal
> > > others treat them as decimal.
> > 
> > There is nothing ambiguous about the example provided.  (Perhaps
> > it wasn't a good example, but it's always a bug if '04' is not
> > correctly decoded, regardless of the numeric base in use.)
> 
> Not to belittle the point, but '04' is invalid for base-2/3/4.

The bases discussed here were 8 and 10; my comment applied to
them.  As for base 3, I don't care what you write using it, I
won't be bothering about it.


More information about the freebsd-stable mailing list