added host to alertmail messages

This commit is contained in:
Todd C. Miller
1994-09-01 19:55:28 +00:00
parent 9dd2859b92
commit 89d6f49371

View File

@@ -431,8 +431,8 @@ static void send_mail()
(void) close(0);
/* feed the data to sendmail */
(void) sprintf(buf, "To: %s\nSubject: %s\n\n%s\n\n",
ALERTMAIL, subject, logline);
(void) sprintf(buf, "To: %s\nSubject: %s\n\n%s : %s\n\n",
ALERTMAIL, subject, host, logline);
write(1, buf, strlen(buf));
close(1);