From owner-freebsd-arch@FreeBSD.ORG Mon Aug 22 15:34:40 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F31416A41F; Mon, 22 Aug 2005 15:34:40 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E56D43D45; Mon, 22 Aug 2005 15:34:39 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:liTcRVTSkVqD1tuAJEpm5pwxNM6i025vS6Ncr6c0gcrvn5eslfs95wQpQvC+X9ir@kasuga.mahoroba.org [IPv6:3ffe:501:185b:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.3/8.13.3) with ESMTP/inet6 id j7MFYTXH079047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2005 00:34:32 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 23 Aug 2005 00:34:28 +0900 Message-ID: From: Hajimu UMEMOTO To: Brooks Davis In-Reply-To: <20050822151254.GA22948@odin.ac.hmc.edu> References: <20050821003536.P14178@fledge.watson.org> <20050821040454.GP13959@cirb503493.alcatel.com.au> <867jee5dhz.fsf@xps.des.no> <20050822151254.GA22948@odin.ac.hmc.edu> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd6.0) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.0-BETA3 X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (ameno.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Tue, 23 Aug 2005 00:34:32 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on ameno.mahoroba.org Cc: arch@freebsd.org, Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= , Robert Watson , Peter Jeremy Subject: Re: [CFR] reflect resolv.conf update to running application X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2005 15:34:40 -0000 Hi, >>>>> On Mon, 22 Aug 2005 08:12:54 -0700 >>>>> Brooks Davis said: brooks> I'm fine with the cmp version of the change so long as you only perform brooks> the test if /usr/bin/cmp exists. dhclient-script may be called before brooks> /usr exists and must not misbehave under those circumstances. If /usr/bin/cmp does not exist, The whole test will fail, then it will work as heretofore. So, I think we don't need to test if /usr/bin/cmp exists. However, if /usr/bin/cmp does not exist, error message will out. So, we need to supress it as following: if cmp -s /etc/resolv.conf.std /etc/resolv.conf; then rm -f /etc/resolv.conf.std return 0 fi 2>/dev/null Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/