bin/71537: geom syntax error/misbehaviour

bugghy bugghy at
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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 09 17:40:28 GMT 2004
>Originator:     bugghy
>Release:        FreeBSD 6.0-CURRENT i386
System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #13: Thu Sep 9 14:58:31 UTC 2004 root at i386
         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.
# 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
         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();

More information about the freebsd-bugs mailing list