summaryrefslogtreecommitdiff
path: root/plugins/sudoers/cvtsudoers.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2023-05-08 17:03:31 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2023-05-08 17:03:31 -0600
commit6c8f8d3e7f9d43db5d9cae47ec8cffdc93c77861 (patch)
treed583029d6e415c794ae7f61c9206299103c662e5 /plugins/sudoers/cvtsudoers.c
parent131e61b5ef0484ce10f418e0e19c4cf2b0b4abe6 (diff)
downloadsudo-6c8f8d3e7f9d43db5d9cae47ec8cffdc93c77861.tar.gz
Add struct sudoers_parser_config and pass it to init_parser().
This struct contains parser configuration such as the sudoers file uid/gid/mode and parse flags such as verbose, strict and recovery.
Diffstat (limited to 'plugins/sudoers/cvtsudoers.c')
-rw-r--r--plugins/sudoers/cvtsudoers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c
index 870049bbb..7eeeae9c7 100644
--- a/plugins/sudoers/cvtsudoers.c
+++ b/plugins/sudoers/cvtsudoers.c
@@ -770,7 +770,7 @@ parse_sudoers(const char *input_file, struct cvtsudoers_config *conf)
input_file = "stdin";
} else if ((sudoersin = fopen(input_file, "r")) == NULL)
sudo_fatal(U_("unable to open %s"), input_file);
- init_parser(input_file, NULL, false, 1);
+ init_parser(input_file, NULL, NULL);
if (sudoersparse() && !parse_error) {
sudo_warnx(U_("failed to parse %s file, unknown error"), input_file);
parse_error = true;