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

SANETO Takanori sanewo at
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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 19 15:10:15 GMT 2006
>Originator:     SANETO Takanori
>Release:        7-CURRENT
an individual
FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #994: Thu Aug 10 15:55:25 JST 2006     root at  i386
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.
As described above.

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


More information about the freebsd-bugs mailing list