Date: Thu, 5 Jan 2006 10:19:30 GMT From: Guy Harris <guy@alum.mit.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/91341: Typo in devfs error message Message-ID: <200601051019.k05AJU7k019425@www.freebsd.org> Resent-Message-ID: <200601051020.k05AK5DK095465@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 91341
>Category: misc
>Synopsis: Typo in devfs error message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 05 10:20:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Guy Harris
>Release: FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
FreeBSD marconi.local 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The error message from the devfs command reporting an invalid "mode" parameter misspells "invalid".
>How-To-Repeat:
Try a command such as
devfs rule add path 'bpf*' group staff mode rw-rw----
>Fix:
s/invald/invalid" in sbin/devfs/rule.c:
*** rule.c.dist Sun Feb 27 09:22:36 2005
--- rule.c Sat Dec 31 17:51:12 2005
***************
*** 395,401 ****
dr->dr_iacts |= DRA_MODE;
set = setmode(av[1]);
if (set == NULL)
! errx(1, "invald mode: %s", av[1]);
dr->dr_mode = getmode(set, 0);
av += 2;
} else if (strcmp(av[0], "include") == 0) {
--- 395,401 ----
dr->dr_iacts |= DRA_MODE;
set = setmode(av[1]);
if (set == NULL)
! errx(1, "invalid mode: %s", av[1]);
dr->dr_mode = getmode(set, 0);
av += 2;
} else if (strcmp(av[0], "include") == 0) {
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601051019.k05AJU7k019425>
