Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 18:06:11 -0000
From:      "Steven Hartland" <smh@freebsd.org>
To:        <rc@freebsd.org>
Subject:   Fix rc.subr dealing with some daemons
Message-ID:  <34B5ED8BFFD24CACB5A7E92BC29D2AA6@multiplay.co.uk>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34B5ED8BFFD24CACB5A7E92BC29D2AA6>