Date: Tue, 30 Sep 2003 16:20:12 -0700 (PDT) From: Makoto Matsushita <matusita@jp.FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/57407: [patch] Better NTP support for dhclient(8) and friends Message-ID: <200309302320.h8UNKCK0070795@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/57407; it has been noted by GNATS. From: Makoto Matsushita <matusita@jp.FreeBSD.org> To: bug-followup@FreeBSD.org Cc: r.s.a.vandomburg@student.utwente.nl Subject: Re: bin/57407: [patch] Better NTP support for dhclient(8) and friends Date: Wed, 01 Oct 2003 08:13:10 +0900 +make_ntp_conf() { + if [ x"$new_ntp_servers" != x ]; then + ( echo restrict default noquery notrust nomodify >/etc/ntp.conf ) + exit_status=$? + if [ $exit_status -ne 0 ]; then + $LOGGER "WARNING: Unable to update ntp.conf: Error $exit_status" + else + ( echo restrict 127.0.0.1 >>/etc/ntp.conf ) + for ntpserver in $new_ntp_servers; do + ( echo restrict $ntpserver >>/etc/resolv.conf ) + done + for ntpserver in $new_ntp_servers; do + ( echo server $ntpserver >>/etc/resolv.conf ) + done + ( echo driftfile /etc/ntp.drift >>/etc/resolv.conf ) + fi + fi +} I doubt if this function, make_ntp_conf() does the right things, since it writes NTP-related contents to /etc/resolv.conf (see above). -- - Makoto `MAR' Matsushita
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309302320.h8UNKCK0070795>