Date: Sun, 08 Jan 2006 05:24:22 +0000 From: Gary Palmer <gjp@in-addr.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-stable@freebsd.org Subject: Re: devd and caseful device ID matching on 6.0 Message-ID: <43C0A206.6020103@in-addr.com> In-Reply-To: <20060107.221615.106545203.imp@bsdimp.com> References: <43C05270.60106@freebsd.org> <43C07B16.7050505@errno.com> <43C09F08.1080707@freebsd.org> <20060107.221615.106545203.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh wrote: >This works. However, matches should already be case insensitive. If >they aren't, then I need to investigate why not. > > My reading of regex(3) says that the reg_comp at line 173 of devd.cc needs to add the REG_ICASE flag. i.e. regcomp(&_regex, _re.c_str(), REG_EXTENDED | REG_NOSUB | REG_ICASE); Testing seeems to show that adding that flag makes "match" case-insensitive. Regards, Gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C0A206.6020103>