mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
testsudoers: disable argument permutation in GNU getopt
This makes it easier to test commands with arguments.
This commit is contained in:
parent
b6a2fcf59f
commit
4e3a48f2d1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user