Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  1 Jul 2000 06:58:18 -0700 (PDT)
From:      pdp@nl.demon.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/19625: /usr/sbin/periodic mishandles system config files
Message-ID:  <20000701135818.4D0DE37B6FF@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000701135818.4D0DE37B6FF>