summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-12-24 10:37:25 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-12-24 10:37:25 +0000
commit74762ed3c829c3e52d5677f2c05cbe7a62dc32e6 (patch)
tree9d3f49b1cca457018cee95096b7d6579ffb5a254 /sys/compat/freebsd
parentd1861dfc1aec48237fce66e52261ab50080b059a (diff)
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 'sys/compat/freebsd')
0 files changed, 0 insertions, 0 deletions