[Bug 235239] [devd.conf] syntax broken by base r343249

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 27 11:29:47 UTC 2019


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

            Bug ID: 235239
           Summary: [devd.conf] syntax broken by base r343249
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: freebsd at oldach.net

base r343249 changed the "subsystem" match case of a notify statement in order
to fix bug #153594. Unfortunately the regex presented there is broken.

"(?!usbus[0-9]+|?!wlan[0-9]+)" is not proper regex syntax - at minimum the
question marks are wrong.

Further, devd.cc implements a special handling of the negation case (first
regex character is a '!'). See the match::match function in devd.cc starting at
line 289. According to this logic (which BTW matches with the devd.conf
manpage), it is imperative that the exclamation mark must be the first
character.

Hence the  correct regex for implementing the effect intended by base r343249
would be:

"!(usbus|wlan)[0-9]+"

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


More information about the freebsd-bugs mailing list