Bug 38727

Summary: [patch] mptable(1) should complain about garbage arguments
Product: Base System Reporter: Pete Zaitcev <zaitcev>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: imp
Priority: Normal Keywords: patch
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
mptable.c.diff none

Description Pete Zaitcev 2002-05-30 05:50:01 UTC
      mptable ignores arguments with matching first letters.
Comment 1 Alexander Best freebsd_committer freebsd_triage 2010-11-18 23:31:29 UTC
State Changed
From-To: open->analyzed

Can somebody please commit this patch? I'll send in an updated version which 
applies cleanly to HEAD right away.
Comment 2 Alexander Best freebsd_committer freebsd_triage 2010-11-18 23:53:39 UTC
here's an updated patch which applies cleanly to HEAD.

cheers.
alex

-- 
a13x
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:51:56 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:36:10 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 5 Warner Losh freebsd_committer freebsd_triage 2024-01-15 21:50:49 UTC
Patch applies (both of them) and looks correct. Queued.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-01-16 00:58:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=11500481c82c9fa6e7d3b9a707bd9ca1ed637c2d

commit 11500481c82c9fa6e7d3b9a707bd9ca1ed637c2d
Author:     Pete Zaitcev <zaitcev@redhat.com>
AuthorDate: 2024-01-15 21:42:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-01-16 00:57:28 +0000

    mptable: improve error reporting for invalid commands

    mptable ignores arguments with matching first letters, report errors
    when it gets garbate.

    PR: 38727
    Reviewed by: imp

 usr.sbin/mptable/mptable.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)