elfctl: error if -e is specified multiple times

Reported by:	jrm
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2022-02-14 22:04:29 -05:00
parent 05f0b24bfb
commit f0cf9b602d

View File

@ -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;