testsudoers: disable argument permutation in GNU getopt
This makes it easier to test commands with arguments.
This commit is contained in:
@@ -133,7 +133,7 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
dflag = 0;
|
dflag = 0;
|
||||||
grfile = pwfile = NULL;
|
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) {
|
switch (ch) {
|
||||||
case 'd':
|
case 'd':
|
||||||
dflag = 1;
|
dflag = 1;
|
||||||
|
Reference in New Issue
Block a user