Date: Tue, 23 Aug 2005 00:34:28 +0900 From: Hajimu UMEMOTO <ume@freebsd.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: arch@freebsd.org, Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= <des@des.no>, Robert Watson <rwatson@freebsd.org>, Peter Jeremy <PeterJeremy@optushome.com.au> Subject: Re: [CFR] reflect resolv.conf update to running application Message-ID: <ygell2u3rzv.wl%ume@mahoroba.org> In-Reply-To: <20050822151254.GA22948@odin.ac.hmc.edu> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, >>>>> On Mon, 22 Aug 2005 08:12:54 -0700 >>>>> Brooks Davis <brooks@one-eyed-alien.net> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygell2u3rzv.wl%ume>