elfctl: error if -e is specified multiple times

Reported by:	jrm
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit f0cf9b602d)
This commit is contained in:
Ed Maste 2022-02-14 22:04:29 -05:00
parent f6c74bacf5
commit 85d997620e

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;