diff --git a/usr.bin/elfctl/elfctl.c b/usr.bin/elfctl/elfctl.c index 9463372f674..993349d4ec4 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;