Rename log_warning flags and only send mail if SLOG_SEND_MAIL is
set instead of mailing by default like we used to.
This commit is contained in:
@@ -112,10 +112,10 @@ sudo_file_parse(struct sudo_nss *nss)
|
||||
sudoersin = nss->handle;
|
||||
if (sudoersparse() != 0 || parse_error) {
|
||||
if (errorlineno != -1) {
|
||||
log_warningx(0, N_("parse error in %s near line %d"),
|
||||
log_warningx(SLOG_SEND_MAIL, N_("parse error in %s near line %d"),
|
||||
errorfile, errorlineno);
|
||||
} else {
|
||||
log_warningx(0, N_("parse error in %s"), errorfile);
|
||||
log_warningx(SLOG_SEND_MAIL, N_("parse error in %s"), errorfile);
|
||||
}
|
||||
debug_return_int(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user