From nobody@FreeBSD.ORG  Sat Jul  1 06:58:18 2000
Return-Path: <nobody@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
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/sbin/periodic mishandles system config files
X-Send-Pr-Version: www-1.0

>Number:         19625
>Category:       bin
>Synopsis:       /usr/sbin/periodic mishandles system config files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 01 07:00:01 PDT 2000
>Closed-Date:    Sat Jul 1 07:24:36 PDT 2000
>Last-Modified:  Sat Jul 01 07:26:26 PDT 2000
>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:

From: "Chris D. Faulhaber" <jedgar@fxp.org>
To: pdp@nl.demon.net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/19625: /usr/sbin/periodic mishandles system config files
Date: Sat, 1 Jul 2000 10:12:42 -0400 (EDT)

 On Sat, 1 Jul 2000 pdp@nl.demon.net wrote:
 
 > 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
 > 
 
 rc.conf is sourced from /etc/defaults/rc.conf already (see
 source_rc_confs variable and the routine at the end of
 /etc/defaults/rc.conf).
 
 -----
 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
 --------------------------------------------------------
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
 
 
 

From: Phil Pennock <pdp@nl.demon.net>
To: "Chris D. Faulhaber" <jedgar@fxp.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/19625: /usr/sbin/periodic mishandles system config files
Date: Sat, 1 Jul 2000 16:18:17 +0200

 On Sat 01 Jul 2000 (10:12 -0400), Chris D. Faulhaber wrote:
 > rc.conf is sourced from /etc/defaults/rc.conf already (see
 > source_rc_confs variable and the routine at the end of
 > /etc/defaults/rc.conf).
 
 *groan*
 
 This is what I get for working on a Saturday.
 
 Sorry for wasting your time with this crap.
 -- 
 Phil Pennock                        <pdp@nl.demon.net> <Phil.Pennock@thus.net>
 Demon Internet Nederland -- Network Operations Centre -- Systems Administrator
 Libertes philosophica.
 Sales: +31 20 422 20 00                                Support: 0800 33 6666 8
 
State-Changed-From-To: open->closed 
State-Changed-By: jedgar 
State-Changed-When: Sat Jul 1 07:24:36 PDT 2000 
State-Changed-Why:  
Problem is a non-issue.  Submitter's knowledge has been updated. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19625 
>Unformatted:
