Fix rc.subr dealing with some daemons
Steven Hartland
smh at freebsd.org
Tue Jan 8 18:06:00 UTC 2013
I'm looking to commit the patch I suggested back in 2007
in PR, if there no objections?
http://www.freebsd.org/cgi/query-pr.cgi?pr=117027
In summary it adds and additional valid pattern, which
while could in a very rare case increase false positive
test, no more so than any of the patterns which IMO
is better than the current state which means these
daemons always fail.
--- /etc/rc.subr.orig Mon Oct 8 18:31:34 2007+++ /etc/rc.subr Mon Oct 8 18:32:31 2007@@ -271,5 +271,5 @@
_fp_args='_argv'
_fp_match='case "$_argv" in
- ${_interp}|"${_interp} "*|"${_interpbn}: ${_procname}"*)'
+ ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)'
else # a normal daemon
_procnamebn=${_procname##*/}
Regards
Steve
More information about the freebsd-rc
mailing list