From 4e3a48f2d1003b51f507a48547ab0c91cd6add99 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 10 Feb 2022 10:36:03 -0700 Subject: [PATCH] testsudoers: disable argument permutation in GNU getopt This makes it easier to test commands with arguments. --- plugins/sudoers/testsudoers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index e0ef5ed66..1aa8aafbd 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -133,7 +133,7 @@ main(int argc, char *argv[]) dflag = 0; grfile = pwfile = NULL; - while ((ch = getopt(argc, argv, "dg:G:h:i:P:p:tu:U:")) != -1) { + while ((ch = getopt(argc, argv, "+dg:G:h:i:P:p:tu:U:")) != -1) { switch (ch) { case 'd': dflag = 1;