From: Todd C. Miller Date: Thu, 1 Sep 1994 19:55:28 +0000 (+0000) Subject: added host to alertmail messages X-Git-Tag: SUDO_1_4_0~719 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89d6f49371bc60cccc707453bc5ca7d36d649cdb;p=sudo added host to alertmail messages --- diff --git a/logging.c b/logging.c index 2b562b9c1..c34f0a4ca 100644 --- a/logging.c +++ b/logging.c @@ -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);