The branch main has been updated by emaste:

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

commit f0cf9b602dc0375dfc279500e0314b7c55273bf0
Author:     Ed Maste <[email protected]>
AuthorDate: 2022-02-15 03:04:29 +0000
Commit:     Ed Maste <[email protected]>
CommitDate: 2022-02-15 03:08:47 +0000

    elfctl: error if -e is specified multiple times
    
    Reported by:    jrm
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
---
 usr.bin/elfctl/elfctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c
index de14551f76d9..8b3d20d4a9c7 100644
--- a/usr.bin/elfctl/elfctl.c
+++ b/usr.bin/elfctl/elfctl.c
@@ -116,6 +116,8 @@ main(int argc, char **argv)
                        lflag = true;
                        break;
                case 'e':
+                       if (features != NULL)
+                               errx(1, "-e may be specified only once");
                        features = optarg;
                        editfeatures = true;
                        break;

Reply via email to