Use real setters for the eventlog config.

This makes it possible to have a base config that the callers can
modify instead of replacing the config wholesale.
This commit is contained in:
Todd C. Miller
2020-10-26 16:10:42 -06:00
parent 39b540ff33
commit d899fe5936
9 changed files with 375 additions and 89 deletions

View File

@@ -620,8 +620,8 @@ init_defaults(void)
if (!init_envtables())
goto oom;
/* Update eventlog config. */
update_eventlog_config();
/* Init eventlog config. */
init_eventlog_config();
firsttime = 0;
@@ -758,9 +758,6 @@ update_defaults(struct sudoers_parse_tree *parse_tree,
ret = false;
}
/* Update eventlog config. */
update_eventlog_config();
debug_return_bool(ret);
}