diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2021-02-24 23:56:16 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2021-02-24 23:56:16 +0000 |
commit | d85c9cef1380f4f135aee95ad8c1f4d3eca74c5b (patch) | |
tree | 081373e690c86570a01701c2ce1d3770d0d93754 /release | |
parent | 14b5a3c7d5c034c2a5a487b5e2d0de79c2801a65 (diff) | |
download | src-d85c9cef1380f4f135aee95ad8c1f4d3eca74c5b.tar.gz src-d85c9cef1380f4f135aee95ad8c1f4d3eca74c5b.zip |
ddb: reliably fail with ambiguous commands
db_cmd_match had an even/odd bug, where if a third command was partially
matched (or any odd number greater than one) the search result would be
set back from CMD_AMBIGUOUS to CMD_FOUND, causing the last command in
the list to be executed instead of failing the match.
Reported by: mlaier
Reviewed by: markj, mlaier, vangyzen
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D28659
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions