Bug 38727 - [patch] mptable(1) should complain about garbage arguments
Summary: [patch] mptable(1) should complain about garbage arguments
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2002-05-30 05:50 UTC by Pete Zaitcev
Modified: 2024-01-16 01:04 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (959 bytes, patch)
2002-05-30 05:50 UTC, Pete Zaitcev
no flags Details | Diff
mptable.c.diff (690 bytes, patch)
2010-11-18 23:53 UTC, Alexander Best
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)