Subject: bin/19949: altqd doesn't know command '?'
To: None <gnats-bugs@gnats.netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: netbsd-bugs
Date: 01/20/2003 17:26:59
>Number: 19949
>Category: bin
>Synopsis: altqd doesn't know command '?'
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 20 08:28:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Christian Biere
>Release: NetBSD 1.6K
>Organization:
>Environment:
>Description:
altqd -d asserts '?' is a synonym for 'help'. This isn't the case. '?'
is no know command for altqd.
>How-To-Repeat:
$ altqd -d
Enter ? or command:
altqd rtk0>
?? ?
altqd rtk0>
>Fix:
This patch should fix the problem but I couldn't test it.
Index: parser.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/altq/libaltq/parser.c,v
retrieving revision 1.7
diff -u -r1.7 parser.c
--- parser.c 2002/03/05 04:11:53 1.7
+++ parser.c 2003/01/20 16:23:54
@@ -99,7 +99,8 @@
int (*parser)(char *);
const char *help;
} cmd_tab[] = {
- {"help", NULL, "help | ?"},
+ {"?", NULL, "same as help"},
+ {"help", NULL, "help"},
{"quit", NULL, "quit"},
{"interface", interface_parser, "interface if_name [bandwidth bps] [cbq|hfsc]"},
{"class", class_parser, "class discipline if_name class_name [parent]"},
>Release-Note:
>Audit-Trail:
>Unformatted: