mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
moved send_mail to after syslog
This commit is contained in:
@@ -229,8 +229,6 @@ void log_error(code)
|
|||||||
strcat(p, " ... "); /* add an elipsis to the end */
|
strcat(p, " ... "); /* add an elipsis to the end */
|
||||||
|
|
||||||
}
|
}
|
||||||
if (appropriate(code))
|
|
||||||
send_mail();
|
|
||||||
|
|
||||||
#ifdef SYSLOG
|
#ifdef SYSLOG
|
||||||
#ifdef Syslog_facility
|
#ifdef Syslog_facility
|
||||||
@@ -278,6 +276,7 @@ void log_error(code)
|
|||||||
closelog();
|
closelog();
|
||||||
#endif /* SYSLOG */
|
#endif /* SYSLOG */
|
||||||
#ifdef _PATH_SUDO_LOGFILE
|
#ifdef _PATH_SUDO_LOGFILE
|
||||||
|
|
||||||
/* become root */
|
/* become root */
|
||||||
be_root();
|
be_root();
|
||||||
|
|
||||||
@@ -345,6 +344,10 @@ void log_error(code)
|
|||||||
/* relinquish root */
|
/* relinquish root */
|
||||||
be_user();
|
be_user();
|
||||||
#endif /* _PATH_SUDO_LOGFILE */
|
#endif /* _PATH_SUDO_LOGFILE */
|
||||||
|
|
||||||
|
/* send mail if appropriate */
|
||||||
|
if (appropriate(code))
|
||||||
|
send_mail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user