sudoers error recovery can be configured via an "error_recovery" setting.
This setting is an argument to the sudoers plugin, similar to how sudoers_file, sudoers_mode, sudoers_uid, etc. are implemented. The default value is true.
This commit is contained in:
@@ -109,7 +109,7 @@ sudo_file_parse(struct sudo_nss *nss)
|
||||
log_warningx(SLOG_SEND_MAIL|SLOG_NO_STDERR,
|
||||
N_("parse error in %s"), errorfile);
|
||||
}
|
||||
if (error) {
|
||||
if (error || !sudoers_recovery) {
|
||||
/* unrecoverable error */
|
||||
debug_return_ptr(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user