misc/91341: Typo in devfs error message
Guy Harris
guy at alum.mit.edu
Thu Jan 5 02:20:07 PST 2006
>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 at 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:
More information about the freebsd-bugs
mailing list