From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 14 14:20:19 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36F6616A420 for ; Tue, 14 Jun 2005 14:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7296D43D58 for ; Tue, 14 Jun 2005 14:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5EEKIZI047476 for ; Tue, 14 Jun 2005 14:20:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5EEKI3l047475; Tue, 14 Jun 2005 14:20:18 GMT (envelope-from gnats) Resent-Date: Tue, 14 Jun 2005 14:20:18 GMT Resent-Message-Id: <200506141420.j5EEKI3l047475@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ralf Wenk Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FA0816A41C for ; Tue, 14 Jun 2005 14:13:39 +0000 (GMT) (envelope-from root@fh-karlsruhe.de) Received: from rz06.fh-karlsruhe.de (rz06.FH-Karlsruhe.DE [193.196.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C103E43D4C for ; Tue, 14 Jun 2005 14:13:36 +0000 (GMT) (envelope-from root@fh-karlsruhe.de) Received: from rz-tp600e.fh-karlsruhe.de ([193.196.65.252] helo=localhost) by rz06.fh-karlsruhe.de with esmtp (Exim 4.50) id 1DiCAY-0007yw-Vk; Tue, 14 Jun 2005 16:13:35 +0200 Received: from root by localhost with local (Exim 4.51 (FreeBSD)) id 1DiCAY-0000EL-Nt; Tue, 14 Jun 2005 16:13:34 +0200 Message-Id: Date: Tue, 14 Jun 2005 16:13:34 +0200 From: Ralf Wenk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Ralf Wenk Subject: conf/82228: order parsed ntpdate_hosts in /etc/rc.d/ntpdate X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ralf Wenk List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 14:20:19 -0000 >Number: 82228 >Category: conf >Synopsis: order parsed ntpdate_hosts in /etc/rc.d/ntpdate >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Jun 14 14:20:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Ralf Wenk >Release: FreeBSD 6.0-CURRENT i386 >Organization: FH Karlsruhe, University of Applied Sciences >Environment: System: FreeBSD RZ-TP600E 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Wed Jun 1 14:27:13 CEST 2005 root@:/usr/obj/usr/src/sys/tp600e i386 >Description: /etc/rc.d/ntpdate uses awk to parse /etc/ntp.conf for hosts. It just uses peer and server statements. This patch also uses multicastclient and broadcastclient statements and also groups the returned hosts by type. >How-To-Repeat: Have a look at the script source. >Fix: Apply the following patch: --- rc.d-ntpdate.udiff begins here --- --- ntpdate.ori Wed May 25 08:51:53 2005 +++ ntpdate Tue Jun 14 15:46:33 2005 @@ -20,9 +20,13 @@ { if [ -z "$ntpdate_hosts" -a -f /etc/ntp.conf ]; then ntpdate_hosts=`awk ' - /^server[ \t]*127.127/ {next} - /^(server|peer)/ {print $2} - ' Release-Note: >Audit-Trail: >Unformatted: