From owner-freebsd-arch@FreeBSD.ORG Mon Aug 22 16:02:09 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 1D9F016A41F; Mon, 22 Aug 2005 16:02:09 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id A997C43D45; Mon, 22 Aug 2005 16:02:08 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-1.free.fr (Postfix) with ESMTP id 84A831734D1; Mon, 22 Aug 2005 18:02:05 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id A52AF405A; Mon, 22 Aug 2005 18:02:31 +0200 (CEST) Date: Mon, 22 Aug 2005 18:02:31 +0200 From: Jeremie Le Hen To: Hajimu UMEMOTO Message-ID: <20050822160231.GK659@obiwan.tataz.chchile.org> References: <20050821003536.P14178@fledge.watson.org> <20050821040454.GP13959@cirb503493.alcatel.com.au> <867jee5dhz.fsf@xps.des.no> <20050822151254.GA22948@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: arch@freebsd.org, Peter Jeremy , Robert Watson , Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= 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 16:02:09 -0000 Hi Hajimu-san, > 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 It would be good to put a comment in front of this block to explain this, or it has good chances to generates some mails in the future. Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >