Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2005 18:02:31 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Hajimu UMEMOTO <ume@freebsd.org>
Cc:        arch@freebsd.org, Peter Jeremy <PeterJeremy@optushome.com.au>, Robert Watson <rwatson@freebsd.org>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Subject:   Re: [CFR] reflect resolv.conf update to running application
Message-ID:  <20050822160231.GK659@obiwan.tataz.chchile.org>
In-Reply-To: <ygell2u3rzv.wl%ume@mahoroba.org>
References:  <ygefyt4yiaz.wl%ume@mahoroba.org> <20050821003536.P14178@fledge.watson.org> <20050821040454.GP13959@cirb503493.alcatel.com.au> <ygeacjbyj5g.wl%ume@mahoroba.org> <867jee5dhz.fsf@xps.des.no> <ygemzna3uiq.wl%ume@mahoroba.org> <20050822151254.GA22948@odin.ac.hmc.edu> <ygell2u3rzv.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 >



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