Skip site navigation (1)Skip section navigation (2)
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:   conf/102275: ${etcdir} won't be set properly for some condition
Message-ID:  <200608191501.k7JF1lk0047509@www.freebsd.org>
Resent-Message-ID: <200608191510.k7JFAFX6040041@freefall.freebsd.org>

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

>Number:         102275
>Category:       conf
>Synopsis:       ${etcdir} won't be set properly for some condition
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 19 15:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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