Bug 19625

Summary: /usr/sbin/periodic mishandles system config files
Product: Base System Reporter: Phil Pennock <pdp>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Phil Pennock 2000-07-01 15:00:01 UTC
/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

Fix: Patch src/usr.sbin/periodic/periodic.sh
How-To-Repeat: Read the shell-script - /usr/sbin/periodic
Comment 1 jedgar 2000-07-01 15:12:42 UTC
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
Comment 2 Phil Pennock 2000-07-01 15:18:17 UTC
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
Comment 3 Chris D.Faulhaber freebsd_committer freebsd_triage 2000-07-01 15:24:36 UTC
State Changed
From-To: open->closed

Problem is a non-issue.  Submitter's knowledge has been updated.