Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2021 21:37:52 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e5be21d19b41 - main - sbin/veriexec: fixed parameter parsing of option -x
Message-ID:  <202106022137.152LbqFA054569@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=e5be21d19b41e4d42ffea5c7978d7e64a5cec4fc

commit e5be21d19b41e4d42ffea5c7978d7e64a5cec4fc
Author:     sebastien.bini <sebastien.bini@stormshield.eu>
AuthorDate: 2020-10-20 14:52:16 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-06-02 21:37:51 +0000

    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
---
 sbin/veriexec/veriexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/veriexec/veriexec.c b/sbin/veriexec/veriexec.c
index b9299efaad02..c1facbd4a9fa 100644
--- a/sbin/veriexec/veriexec.c
+++ b/sbin/veriexec/veriexec.c
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106022137.152LbqFA054569>