2
0
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:
Todd C. Miller
1994-08-03 16:08:49 +00:00
parent 8161d52f34
commit 91970b4182

View File

@@ -229,8 +229,6 @@ void log_error(code)
strcat(p, " ... "); /* add an elipsis to the end */
}
if (appropriate(code))
send_mail();
#ifdef SYSLOG
#ifdef Syslog_facility
@@ -278,6 +276,7 @@ void log_error(code)
closelog();
#endif /* SYSLOG */
#ifdef _PATH_SUDO_LOGFILE
/* become root */
be_root();
@@ -345,6 +344,10 @@ void log_error(code)
/* relinquish root */
be_user();
#endif /* _PATH_SUDO_LOGFILE */
/* send mail if appropriate */
if (appropriate(code))
send_mail();
}