From conrads@cox.net  Sat Apr 17 20:43:50 2004
Return-Path: <conrads@cox.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0494316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Apr 2004 20:43:50 -0700 (PDT)
Received: from lakermmtao06.cox.net (lakermmtao06.cox.net [68.230.240.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 82F9E43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Apr 2004 20:43:49 -0700 (PDT)
	(envelope-from conrads@cox.net)
Received: from ip68-14-60-78.no.no.cox.net ([68.14.60.78])
          by lakermmtao06.cox.net
          (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP
          id <20040418034342.KKMA2585.lakermmtao06.cox.net@ip68-14-60-78.no.no.cox.net>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sat, 17 Apr 2004 23:43:42 -0400
Received: from ip68-14-60-78.no.no.cox.net (localhost [127.0.0.1])
	by ip68-14-60-78.no.no.cox.net (8.12.11/8.12.11) with ESMTP id i3I3hfYV041672
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Apr 2004 22:43:41 -0500 (CDT)
	(envelope-from conrads@ip68-14-60-78.no.no.cox.net)
Received: (from root@localhost)
	by ip68-14-60-78.no.no.cox.net (8.12.11/8.12.11/Submit) id i3I3haA0041671;
	Sat, 17 Apr 2004 22:43:36 -0500 (CDT)
	(envelope-from conrads)
Message-Id: <200404180343.i3I3haA0041671@ip68-14-60-78.no.no.cox.net>
Date: Sat, 17 Apr 2004 22:43:36 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Reply-To: "Conrad J. Sabatier" <conrads@cox.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: wildcarded device names in /etc/devfs.conf break /etc/rc.d/devfs
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         65693
>Category:       bin
>Synopsis:       wildcarded device names in /etc/devfs.conf break /etc/rc.d/devfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 17 20:50:22 PDT 2004
>Closed-Date:    Thu Jun 30 09:17:44 GMT 2005
>Last-Modified:  Thu Jun 30 09:17:44 GMT 2005
>Originator:     Conrad J. Sabatier
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
None
>Environment:

System: FreeBSD ip68-14-60-78.no.no.cox.net 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Fri Apr 16 12:21:57 CDT 2004 conrads@ip68-14-60-78.no.no.cox.net:/usr/obj/usr/src/sys/MYKERNEL i386

>Description:

Adding the following line to /etc/devfs.conf causes the /etc/rc.d/devfs
script to fail:

perm 	acd*	0666

Trace output (truncated, from sh -x devfs start):

+ read action device parameter
+ [ -c acd0 acd0t01 acd0t02 acd0t03 acd0t04 acd0t05 acd0t06 acd0t07 acd0t08 acd0t09 
acd0t10 acd0t11 acd0t12 acd0t13 acd0t14 acd1 ]
[: acd0: unexpected operator
+ read action device parameter
+ _return=0
+ [ 0 -ne 0 ]
+ [ -n  ]
+ return 0

>How-To-Repeat:

Use wildcard device name in /etc/devfs.conf and watch the fun.  :-)

>Fix:

None at hand, but obviously the script needs to differentiate between single device 
names and lists of device names.  Wildcarding device names is just too convenient to 
sacrifice for the sake of a non-robust script.  :-)
>Release-Note:
>Audit-Trail:

From: Matteo Riondato <rionda@gufi.org>
To: bug-followup@FreeBSD.org, conrads@cox.net
Cc:  
Subject: Re: bin/65693: wildcarded device names in /etc/devfs.conf break /etc/rc.d/devfs
Date: Wed, 8 Jun 2005 23:11:05 +0200

 A patch for this can be found at http://www.riondabsd.net/devfs.diff
 
 I hope someone will commit it, since I think it's a nice and useful feature
 to have.
 
 Best Regards
 -- 
 Rionda aka Matteo Riondato
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
State-Changed-From-To: open->closed 
State-Changed-By: mtm 
State-Changed-When: Thu Jun 30 09:13:51 GMT 2005 
State-Changed-Why:  
devfs.conf(5) has been superceeded by devfs.rules(5). 
It does almost everything devfs.conf can do, and it does 
it better. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=65693 
>Unformatted:
