diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-02-15 03:04:29 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-02-15 03:08:47 +0000 |
commit | f0cf9b602dc0375dfc279500e0314b7c55273bf0 (patch) | |
tree | 940820c01e80f51452f56d7129cc6fbfd0b35396 /usr.bin | |
parent | 05f0b24bfb3416606c8ea02bc1bdb9bcee7aee0c (diff) | |
download | src-f0cf9b602dc0375dfc279500e0314b7c55273bf0.tar.gz src-f0cf9b602dc0375dfc279500e0314b7c55273bf0.zip |
elfctl: error if -e is specified multiple times
Reported by: jrm
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/elfctl/elfctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |