mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-25 19:37:46 +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;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user