From owner-freebsd-bugs Tue Mar 14 16: 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 8C69337B88C for ; Tue, 14 Mar 2000 16:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA30233; Tue, 14 Mar 2000 16:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from elbas.partitur.se (elbas.partitur.se [193.219.246.222]) by hub.freebsd.org (Postfix) with ESMTP id C35DA37B742 for ; Tue, 14 Mar 2000 15:56:09 -0800 (PST) (envelope-from girgen@elbas.partitur.se) Received: (from girgen@localhost) by elbas.partitur.se (8.9.3/8.9.3) id AAA60599; Wed, 15 Mar 2000 00:56:02 +0100 (CET) (envelope-from girgen) Message-Id: <200003142356.AAA60599@elbas.partitur.se> Date: Wed, 15 Mar 2000 00:56:02 +0100 (CET) From: Palle Girgensohn Reply-To: Palle Girgensohn To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17378: periodic(8) doesn't care about the local /etc/rc.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17378 >Category: bin >Synopsis: periodic(8) doesn't care about the local /etc/rc.conf >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 14 16:00:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Palle Girgensohn >Release: FreeBSD 4.0-CURRENT i386 >Organization: Partitur >Environment: FreeBSD elbas.partitur.se 4.0-CURRENT FreeBSD 4.0-CURRENT #2: Wed Mar 1 01:03:22 CET 2000 girgen@elbas.partitur.se:/opt/current/src/sys/compile/WORKSTATION i386 >Description: in /usr/sbin/periodic, the shell script first eat /etc/defaults/rc.conf and then only if that file does not exist does it try to read /etc/rc.conf. Isn't /etc/rc.conf supposed to override /etc/defaults/rc.conf? >How-To-Repeat: >Fix: === cd /opt/current/src/usr.sbin/periodic/ === cvs diff -u periodic.sh Index: periodic.sh =================================================================== RCS file: /opt/ncvs/src/usr.sbin/periodic/periodic.sh,v retrieving revision 1.9 diff -u -u -r1.9 periodic.sh --- periodic.sh 1999/08/28 01:17:52 1.9 +++ periodic.sh 2000/03/14 23:46:22 @@ -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 === Exit status: 1 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message