Only treat an unknown Defaults entry as a parse error in visudo,
not in sudo itself.
This commit is contained in:
@@ -261,7 +261,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Allocate space for data structures in the parser. */
|
||||
init_parser("sudoers", false);
|
||||
init_parser("sudoers", false, true);
|
||||
|
||||
/*
|
||||
* Set runas passwd/group entries based on command line or sudoers.
|
||||
|
Reference in New Issue
Block a user