From nobody@FreeBSD.org  Sat Aug 19 15:01:48 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6B58116A4DD
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Aug 2006 15:01:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 37D1943D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Aug 2006 15:01:48 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k7JF1l8f047510
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Aug 2006 15:01:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k7JF1lk0047509;
	Sat, 19 Aug 2006 15:01:47 GMT
	(envelope-from nobody)
Message-Id: <200608191501.k7JF1lk0047509@www.freebsd.org>
Date: Sat, 19 Aug 2006 15:01:47 GMT
From: SANETO Takanori <sanewo@ba2.so-net.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ${etcdir} won't be set properly for some condition
X-Send-Pr-Version: www-2.3

>Number:         102275
>Category:       conf
>Synopsis:       ${etcdir} won't be set properly for some condition
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 19 15:10:15 GMT 2006
>Closed-Date:    Sun Sep 03 14:39:39 GMT 2006
>Last-Modified:  Sun Sep 03 14:39:39 GMT 2006
>Originator:     SANETO Takanori
>Release:        7-CURRENT
>Organization:
an individual
>Environment:
FreeBSD muse.sanewo.ddo.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #994: Thu Aug 10 15:55:25 JST 2006     root@muse.sanewo.ddo.jp:/export/usr/obj/usr/src/sys/MUSE  i386
>Description:
In rc.subr, under conditions below, etcdir won't be set properly ("/etc" or "/usr/local/etc"):
- /usr/local/etc/rc.d/samba invoked from /etc/rc
- /etc/rc.conf.d/samba not exist
- /usr/local/etc/rc.conf.d/samba does exist

In this case, etcdir will be set to /etc/rc/etc.
>How-To-Repeat:
As described above.

>Fix:
For workaround, you can put "command=/usr/local/sbin/_dummy_" in /usr/local/etc/rc.d/samba (samba_program= should be OK, too).

>Release-Note:
>Audit-Trail:

From: "Takanori Saneto" <sanewo@gmail.com>
To: bug-followup@FreeBSD.org
Cc: sanewo@ba2.so-net.ne.jp
Subject: Re: conf/102275: ${etcdir} won't be set properly for some condition
Date: Sun, 3 Sep 2006 17:33:54 +0900

 Recent change (backout) of /etc/rc.subr (1.68) makes this problem not happen.
 So I think this PR can be closed.
 
 With above change, config files under /usr/local/etc/rc.conf.d/ won't
 work anymore. I should use /etc/rc.conf.d/ instead. (As it was before)
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Sep 3 14:39:19 UTC 2006 
State-Changed-Why:  
Closed at submitter's request. 

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