Resolver doesn't like 1.2.3.04 in /etc/hosts

Matt Emmerton matt at gsicomp.on.ca
Wed Oct 26 17:00:37 PDT 2005


> 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.

--
Matt Emmerton


More information about the freebsd-stable mailing list