From owner-freebsd-stable@FreeBSD.ORG Sun Jan 8 05:16:27 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 827C516A41F; Sun, 8 Jan 2006 05:16:27 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 218AA43D48; Sun, 8 Jan 2006 05:16:27 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k085GDNK029317; Sat, 7 Jan 2006 22:16:13 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 07 Jan 2006 22:16:15 -0700 (MST) Message-Id: <20060107.221615.106545203.imp@bsdimp.com> To: gpalmer@freebsd.org From: "M. Warner Losh" In-Reply-To: <43C09F08.1080707@freebsd.org> References: <43C05270.60106@freebsd.org> <43C07B16.7050505@errno.com> <43C09F08.1080707@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 07 Jan 2006 22:16:13 -0700 (MST) Cc: freebsd-stable@freebsd.org Subject: Re: devd and caseful device ID matching on 6.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jan 2006 05:16:27 -0000 In message: <43C09F08.1080707@freebsd.org> Gary Palmer writes: : Sam Leffler wrote: : : > At one point I added shorthand logic in devd for things like vendor, : > device, subvendor, etc. that did numeric comparisons instead of : > regex's. It might be worthwhile to extend the grammar to have a : > numeric match operator. : : : Something like the attached patch? It seems to work in my test case, : although I'm pretty sure its not as defensive as it could be against bad : inputs. : : (note: The patch is against 6.0-STABLE, not head) This works. However, matches should already be case insensitive. If they aren't, then I need to investigate why not. Warner