Only treat an unknown Defaults entry as a parse error in visudo,

not in sudo itself.
This commit is contained in:
Todd C. Miller
2016-11-01 15:08:11 -06:00
parent 8a48085184
commit f6ce83ea76
7 changed files with 124 additions and 116 deletions

View File

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