2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 00:35:14 +00:00

Add reset_parser() and use in place of init_parser(NULL).

This commit is contained in:
Todd C. Miller
2023-05-02 13:27:17 -06:00
parent 80768ed3a8
commit f258a15df5
5 changed files with 19 additions and 6 deletions

View File

@@ -374,6 +374,7 @@ extern struct sudoers_parse_tree parsed_policy;
extern bool (*sudoers_error_hook)(const char *file, int line, int column, const char *fmt, va_list args);
bool init_parser(const char *file);
bool init_parser_ext(const char *file, const char *path, bool strict, int verbose);
bool reset_parser(void);
void free_member(struct member *m);
void free_members(struct member_list *members);
void free_cmndspec(struct cmndspec *cs, struct cmndspec_list *csl);