sbin/veriexec: fixed parameter parsing of option -x

The -x parameter doesn't take any arguments. It says that all further
arguments are paths to check.

Reviewed by:	imp@
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/443/files
This commit is contained in:
sebastien.bini 2020-10-20 16:52:16 +02:00 committed by Warner Losh
parent 4a66b8083c
commit e5be21d19b

View File

@ -70,7 +70,7 @@ main(int argc, char *argv[])
dev_fd = open(_PATH_DEV_VERIEXEC, O_WRONLY, 0);
while ((c = getopt(argc, argv, "C:i:x:vz:")) != -1) {
while ((c = getopt(argc, argv, "C:i:xvz:")) != -1) {
switch (c) {
case 'C':
Cdir = optarg;