diff options
author | 2010-12-24 10:37:24 +0000 | |
---|---|---|
committer | 2010-12-24 10:37:24 +0000 | |
commit | b644115bf63f6712aa271a13a71cdbca9a986643 (patch) | |
tree | 1bc51264442dde8398b729be076b2f048d08d9d7 /usr.bin/mandoc/mdoc_html.c | |
parent | now that pkg_create checks more stuff, we have to ask for it to create (diff) | |
download | wireguard-openbsd-b644115bf63f6712aa271a13a71cdbca9a986643.tar.xz wireguard-openbsd-b644115bf63f6712aa271a13a71cdbca9a986643.zip |
Fix a flaw in the rc.subr framework reported by stephan@ where
local_rcconf would get overwritten by flags from the rc script itself.
Based on an original idea and diff from robert@, create an rc_conf
function that we add in the rc_script after the defaults daemon*
variables.
This way we can use defaults variables names in other part of the script
(when defining a specific pexp for instance).
While here, simplify setting up the default daemon variables so that we
don't need to do any substitution in rc_start.
rc scripts must include daemon variables before calling rc_conf. All
other locally modified variables (pexp, rc_reload, local additions...)
must come after.
feedback from and works for sthen@
ok robert@
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
0 files changed, 0 insertions, 0 deletions