From owner-freebsd-stable@FreeBSD.ORG Thu Oct 27 03:28:18 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D73516A420 for ; Thu, 27 Oct 2005 03:28:18 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from farside.isc.org (farside.isc.org [204.152.187.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0012443D46 for ; Thu, 27 Oct 2005 03:28:17 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from drugs.dv.isc.org (localhost [IPv6:::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by farside.isc.org (Postfix) with ESMTP id 881D1677FD for ; Thu, 27 Oct 2005 03:28:17 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.13.4/8.13.1) with ESMTP id j9QN7G7V014335; Thu, 27 Oct 2005 09:07:17 +1000 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200510262307.j9QN7G7V014335@drugs.dv.isc.org> To: Greg Black From: Mark Andrews In-reply-to: Your message of "Thu, 27 Oct 2005 08:01:21 +1000." Date: Thu, 27 Oct 2005 09:07:16 +1000 Sender: Mark_Andrews@isc.org Cc: freebsd-stable@freebsd.org Subject: Re: Resolver doesn't like 1.2.3.04 in /etc/hosts X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 03:28:18 -0000 > 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