[Bug 228977] /etc/devd/devmatch.conf has bad 'action' line

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 13 09:34:40 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228977

            Bug ID: 228977
           Summary: /etc/devd/devmatch.conf has bad 'action' line
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: bobf at mrp3.com

The new /etc/devd/devmatch.conf has an action line for 'nomatch' in it that
does not work correctly.

Instead of passing a single argument containing embedded white space to the
/etc/rc.d/devmatch script as parameter 2, the 'service' command strips off the
single quote characters, which causes the parameter to be passed as multiple
arguments to the 'devmatch' script, instead.

This causes the devmatch program to receive '?' as the parameter following '-p'
which gives you an error message similar to:

  devmatch: Malformed NOMATCH string: ''

A simple workaround can be performed by using the following action string:

  action "/etc/rc.d/devmatch start '?$_'";

this avoids calling 'service' and invokes the rc script directly.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list