Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 09:07:16 +1000
From:      Mark Andrews <Mark_Andrews@isc.org>
To:        Greg Black <gjb@gbch.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Resolver doesn't like 1.2.3.04 in /etc/hosts 
Message-ID:  <200510262307.j9QN7G7V014335@drugs.dv.isc.org>
In-Reply-To: Your message of "Thu, 27 Oct 2005 08:01:21 %2B1000." <nospam-1130364081.97337@iliad.gbch.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

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

	You want a ambigious example?

		192.168.222.012

	Seen this sort of thing in real life when the admin wanted
	to make the file look pretty and they wanted 12 for the last
	octet not 10.

	Seen boxes that used %03u.%03u.%03u.%03u to print out the
	octets.

	It's much easier to just reject octal and hexadecimal than
	to work out when and when not it is ambigious.  It is also
	better to demand all 4 octets.  It also generates less
	support complaints.

	Mark

> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews@isc.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510262307.j9QN7G7V014335>