Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2000 00:56:02 +0100 (CET)
From:      Palle Girgensohn <girgen@partitur.se>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/17378: periodic(8) doesn't care about the local /etc/rc.conf
Message-ID:  <200003142356.AAA60599@elbas.partitur.se>

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

>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




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