Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2004 19:37:38 +0200 (CEST)
From:      bugghy <bugghy@phenix.rootshell.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bugghy@safe-mail.net
Subject:   bin/71537: geom syntax error/misbehaviour
Message-ID:  <Pine.LNX.4.61.0409091740580.18021@phenix.rootshell.be>
Resent-Message-ID: <200409091740.i89HeSfd009848@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.61.0409091740580.18021>