From owner-freebsd-bugs Sat Jul 1 7: 0: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7B47637BA22 for ; Sat, 1 Jul 2000 07:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA23441; Sat, 1 Jul 2000 07:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 4D0DE37B6FF; Sat, 1 Jul 2000 06:58:18 -0700 (PDT) Message-Id: <20000701135818.4D0DE37B6FF@hub.freebsd.org> Date: Sat, 1 Jul 2000 06:58:18 -0700 (PDT) From: pdp@nl.demon.net To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/19625: /usr/sbin/periodic mishandles system config files Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19625 >Category: bin >Synopsis: /usr/sbin/periodic mishandles system config files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 01 07:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Phil Pennock >Release: 3.4 and 4.0 >Organization: Demon Internet Netherlands >Environment: N/A >Description: /etc/rc.conf contains _overrides_ to /etc/defaults/rc.conf /usr/sbin/periodic doesn't read /etc/rc.conf if it could read /etc/defaults/rc.conf >How-To-Repeat: Read the shell-script - /usr/sbin/periodic >Fix: Patch src/usr.sbin/periodic/periodic.sh --- periodic.sh.orig Wed Apr 26 18:28:11 2000 +++ periodic.sh Sat Jul 1 15:56:31 2000 @@ -22,7 +22,8 @@ # to see if there are additional dirs to check if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf -elif [ -r /etc/rc.conf ]; then +fi +if [ -r /etc/rc.conf ]; then . /etc/rc.conf fi >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message