Re: [CFR] reflect resolv.conf update to running application
From: Hajimu UMEMOTO (ume_at_freebsd.org)
Date: 08/22/05
- Previous message: Brooks Davis: "Re: [CFR] reflect resolv.conf update to running application"
- In reply to: Brooks Davis: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Jeremie Le Hen: "Re: [CFR] reflect resolv.conf update to running application"
- Reply: Jeremie Le Hen: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Aug 2005 00:34:28 +0900 To: Brooks Davis <brooks@one-eyed-alien.net>
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/
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Brooks Davis: "Re: [CFR] reflect resolv.conf update to running application"
- In reply to: Brooks Davis: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Jeremie Le Hen: "Re: [CFR] reflect resolv.conf update to running application"
- Reply: Jeremie Le Hen: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]