Date: Sun, 27 Jan 2019 11:29:44 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 235239] [devd.conf] syntax broken by base r343249 Message-ID: <bug-235239-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235239 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@FreeBSD.org Reporter: freebsd@oldach.net base r343249 changed the "subsystem" match case of a notify statement in or= der 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 startin= g 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 r3432= 49 would be: "!(usbus|wlan)[0-9]+" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235239-227>