Bug 39825

Summary: /etc/rc.sendmail not appropriate configuration file evaluation
Product: Base System Reporter: yuu-w <yuu-w>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description yuu-w 2002-06-25 05:50:01 UTC
      /etc/rc.sendmail evaluates configuraiton file, but this program
evaluate only one file. this is not appropriate, I think.

Fix: # diff -c -r1.1 rc.sendmail
*** rc.sendmail 2002/06/25 04:29:32     1.1
--- rc.sendmail 2002/06/25 04:30:08
***************


--- 43,51 ----
  if [ -r /etc/defaults/rc.conf ]; then
        . /etc/defaults/rc.conf
        source_rc_confs
! fi
! #elif [ -r /etc/rc.conf ]; then
! if [ -r /etc/rc.conf ]; then
        . /etc/rc.conf
  fi--GCCFJPDTum0CxM8ct0CqTLdgOlfsmau5hCsC5O1NI6LrpYgu
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** 43,49 ****
  if [ -r /etc/defaults/rc.conf ]; then
        . /etc/defaults/rc.conf
        source_rc_confs
! elif [ -r /etc/rc.conf ]; then
        . /etc/rc.conf
  fi
Comment 1 Makoto Matsushita 2002-06-25 06:14:07 UTC
yuu-w>       /etc/rc.sendmail evaluates configuraiton file, but this program
yuu-w> evaluate only one file. this is not appropriate, I think.

Wrong assumption.  See source_rc_confs() in /etc/defaults/rc.conf.

This PR can be closed.

-- -
Makoto `MAR' Matsushita
Comment 2 Doug Barton freebsd_committer freebsd_triage 2002-06-25 09:28:44 UTC
State Changed
From-To: open->closed


As was pointed out to you, the source_rc_confs function 
includes all defined rc.conf files.