From nobody@www.freebsd.org  Mon Jun 24 21:40:37 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id B05D837B403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 21:40:36 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5P4eahG067217
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 21:40:36 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5P4eawY067216;
	Mon, 24 Jun 2002 21:40:36 -0700 (PDT)
Message-Id: <200206250440.g5P4eawY067216@www.freebsd.org>
Date: Mon, 24 Jun 2002 21:40:36 -0700 (PDT)
From: WATANABE Yuichi <yuu-w@ascii.co.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.sendmail not appropriate configuration file evaluation
X-Send-Pr-Version: www-1.0

>Number:         39825
>Category:       conf
>Synopsis:       /etc/rc.sendmail not appropriate configuration file evaluation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 21:50:01 PDT 2002
>Closed-Date:    Tue Jun 25 01:29:23 PDT 2002
>Last-Modified:  Tue Jun 25 01:29:23 PDT 2002
>Originator:     WATANABE Yuichi
>Release:        FreeBSD 4.6R
>Organization:
ASCII Corp.
>Environment:
FreeBSD oapc21.oa.ascii.co.jp 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
>Description:
      /etc/rc.sendmail evaluates configuraiton file, but this program
evaluate only one file. this is not appropriate, I think.
>How-To-Repeat:

>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,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

--- 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

>Release-Note:
>Audit-Trail:

From: Makoto Matsushita <matusita@jp.FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/39825: /etc/rc.sendmail not appropriate configuration
 file evaluation
Date: Tue, 25 Jun 2002 14:14:07 +0900

 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
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Tue Jun 25 01:28:44 PDT 2002 
State-Changed-Why:  

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

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