bin/71537: geom syntax error/misbehaviour
bugghy
bugghy at phenix.rootshell.be
Thu Sep 9 10:40:29 PDT 2004
>Number: 71537
>Category: bin
>Synopsis: geom syntax error/misbehaviour
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 09 17:40:28 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: bugghy
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD illusion.com 6.0-CURRENT FreeBSD 6.0-CURRENT #13: Thu Sep 9 14:58:31 UTC 2004 root at illusion.com:/usr/obj/usr/src/sys/BUGNERIC i386
>Description:
geom has a weird help message system when ran with 1-2 args
I know the syntax used in the examples is wrong but there is no error message explaining that.
>How-To-Repeat:
# geom list
usage: geom list help
# geom list help
usage: geom list help
# geom help
usage: geom help help
#geom badoption
usage: geom badoption help
>Fix:
Needs a patch here:
# cat -n /usr/src/sbin/geom/core/geom.c | grep -B 1 -A 2 strcmp\(comm
509 snprintf(comm, sizeof(comm), "%s", basename((*argv)[0]));
510 if (strcmp(comm, "geom") == 0) {
? 511 if (*argc < 2)
512 geom_usage();
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list