Summary: | /etc/rc.subr error fails to parse rc.conf.d directories from $local_startup correctly | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Jamie Landeg-Jones <jamie> | ||||
Component: | conf | Assignee: | Jilles Tjoelker <jilles> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | jamie, jilles | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | 10.2-STABLE | Flags: | jilles:
mfc-stable10+
jilles: mfc-stable9- jilles: mfc-stable8- |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Jamie Landeg-Jones
2015-07-17 00:29:22 UTC
Created attachment 158897 [details]
fix to /etc/rc.subr
A commit references this bug: Author: jilles Date: Sat Aug 1 22:00:26 UTC 2015 New revision: 286163 URL: https://svnweb.freebsd.org/changeset/base/286163 Log: rc.subr: Allow rc.conf.d with multi-directory local_startup. I also changed ${...%*/rc.d} to ${...%/rc.d} since the shortest match always has an empty string for the asterisk. PR: 201641 Submitted by: Jamie Landeg-Jones (original version) MFC after: 1 week Changes: head/etc/rc.subr Cheers!
> I also changed ${...%*/rc.d} to ${...%/rc.d} since the shortest match always has an empty string for the asterisk.
Oops, yes, good catch! I moved that from the original code, but missed the unnecessary asterisk!
Thanks, Jamie
A commit references this bug: Author: jilles Date: Tue Oct 27 20:58:14 UTC 2015 New revision: 290062 URL: https://svnweb.freebsd.org/changeset/base/290062 Log: MFC r286163: rc.subr: Allow rc.conf.d with multi-directory local_startup. I also changed ${...%*/rc.d} to ${...%/rc.d} since the shortest match always has an empty string for the asterisk. PR: 201641 Submitted by: Jamie Landeg-Jones (original version) Changes: _U stable/10/ stable/10/etc/rc.subr |