From owner-cvs-all@FreeBSD.ORG Mon May 21 09:20:19 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0A79816A400; Mon, 21 May 2007 09:20:19 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (mx1.ethionet.et [213.55.64.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6DF7713C447; Mon, 21 May 2007 09:20:18 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (localhost [127.0.0.1]) by localhost.ethionet.et (Postfix) with ESMTP id C268550DF; Mon, 21 May 2007 11:48:59 +0300 (EAT) Received: from rogue.navcom.lan (unknown [213.55.71.233])by mx1.ethionet.et (Postfix) with SMTP id 0AE7B5136; Mon, 21 May 2007 11:48:52 +0300 (EAT) Received: by rogue.navcom.lan (Postfix, from userid 1001)id 9850D12D0; Mon, 21 May 2007 11:57:50 +0300 (EAT) Date: Mon, 21 May 2007 11:57:50 +0300 From: Mike Makonnen To: "Ralf S. Engelschall" Message-ID: <20070521085750.GA2277@rogue.navcom.lan> References: <200705210822.l4L8Miog004013@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705210822.l4L8Miog004013@repoman.freebsd.org> User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD/7.0-CURRENT (i386) X-imss-version: 2.46 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:2 S:3 R:2 (0.5000 0.5000) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d hostid X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 09:20:19 -0000 On Mon, May 21, 2007 at 08:22:44AM +0000, Ralf S. Engelschall wrote: > rse 2007-05-21 08:22:44 UTC > > FreeBSD src repository > > Modified files: > etc/rc.d hostid > Log: > The standardized textual representation of UUIDs according to RFC 4122 > and ISO/IEC-9834-8:2005 is with LOWER-CASE hexadecimal characters only, > so translate the (usually upper-case and this way not conforming) > representation of the BIOS UUID when reading it. Also be more strict > about the valid characters in the textual representation by checking for > just the hexadecimal characters. tr(1) lives in /usr/bin, which may not be available when / (root) is mounted (it may live on a remotely mounted filesystem, for example). So, you can't rely on tr(1) being available when this script is run. Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org