]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
sbin/veriexec: fixed parameter parsing of option -x
authorsebastien.bini <sebastien.bini@stormshield.eu>
Tue, 20 Oct 2020 14:52:16 +0000 (16:52 +0200)
committerWarner Losh <imp@FreeBSD.org>
Wed, 2 Jun 2021 21:37:51 +0000 (15:37 -0600)
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

sbin/veriexec/veriexec.c

index b9299efaad0288453d940252c3d9e2be1cfeb7e8..c1facbd4a9fa3ae3658ff7792a9915dc1912911f 100644 (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;