testsudoers: disable argument permutation in GNU getopt

This makes it easier to test commands with arguments.
This commit is contained in:
Todd C. Miller
2022-02-10 10:36:03 -07:00
parent b6a2fcf59f
commit 4e3a48f2d1

View File

@@ -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;