Date: Wed, 29 May 2002 21:40:41 -0700 (PDT) From: Pete Zaitcev <zaitcev@redhat.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/38727: mptable should complain about garbage arguments Message-ID: <200205300440.g4U4efYH065708@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 38727 >Category: misc >Synopsis: mptable should complain about garbage arguments >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: Wed May 29 21:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pete Zaitcev >Release: -current >Organization: Red Hat, Inc. >Environment: >Description: mptable ignores arguments with matching first letters. >How-To-Repeat: >Fix: *** fbsd-current/mptable.c Wed May 29 16:32:00 2002 --- ./mptable.c Wed May 29 21:25:39 2002 *************** *** 327,345 **** if ( strcmp( optarg, "mesg") == 0 ) dmesg = 1; else ! dmesg = 0; break; case 'h': ! if ( strcmp( optarg, "elp") == 0 ) ! usage(); ! break; case 'g': if ( strcmp( optarg, "rope") == 0 ) grope = 1; break; case 'v': if ( strcmp( optarg, "erbose") == 0 ) verbose = 1; break; default: usage(); --- 376,396 ---- if ( strcmp( optarg, "mesg") == 0 ) dmesg = 1; else ! usage(); break; case 'h': ! usage(); case 'g': if ( strcmp( optarg, "rope") == 0 ) grope = 1; + else + usage(); break; case 'v': if ( strcmp( optarg, "erbose") == 0 ) verbose = 1; + else + usage(); break; default: usage(); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205300440.g4U4efYH065708>