Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2023 05:14:44 GMT
From:      Gordon Bergling <gbe@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 299980e7eca7 - stable/13 - sbin/veriexec: fixed parameter parsing of option -x
Message-ID:  <202304140514.33E5Ei5l019786@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by gbe:

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

commit 299980e7eca72493a839b5c3bbb7147f6a3f41f1
Author:     sebastien.bini <sebastien.bini@stormshield.eu>
AuthorDate: 2020-10-20 14:52:16 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2023-04-14 05:13:58 +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
    
    (cherry picked from commit e5be21d19b41e4d42ffea5c7978d7e64a5cec4fc)
---
 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?202304140514.33E5Ei5l019786>