conf/102275: ${etcdir} won't be set properly for some condition

SANETO Takanori sanewo at ba2.so-net.ne.jp
Sat Aug 19 15:10:16 UTC 2006


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


More information about the freebsd-bugs mailing list