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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"