The following reply was made to PR bin/38727; it has been noted by GNATS. From: Alexander Best <arun...@freebsd.org> To: bug-follo...@freebsd.org Cc: Subject: Re: bin/38727: [patch] mptable(1) should complain about garbage arguments Date: Thu, 18 Nov 2010 23:53:39 +0000
--+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline here's an updated patch which applies cleanly to HEAD. cheers. alex -- a13x --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mptable.c.diff" diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c index a16a1b9..b461e61 100644 --- a/usr.sbin/mptable/mptable.c +++ b/usr.sbin/mptable/mptable.c @@ -322,20 +322,21 @@ main( int argc, char *argv[] ) if ( strcmp( optarg, "mesg") == 0 ) dmesg = 1; else - dmesg = 0; - break; - case 'h': - if ( strcmp( optarg, "elp") == 0 ) - usage(); + usage(); break; case 'g': if ( strcmp( optarg, "rope") == 0 ) grope = 1; + else + usage(); break; case 'v': if ( strcmp( optarg, "erbose") == 0 ) verbose = 1; + else + usage(); break; + case 'h': default: usage(); } --+QahgC5+KEYLbs62-- _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"