Date: Fri, 19 Nov 2010 00:00:34 GMT From: Alexander Best <arundel@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/38727: [patch] mptable(1) should complain about garbage arguments Message-ID: <201011190000.oAJ00YWK084675@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/38727; it has been noted by GNATS. From: Alexander Best <arundel@freebsd.org> To: bug-followup@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011190000.oAJ00YWK084675>