]> granicus.if.org Git - sudo/commitdiff
added host to alertmail messages
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 1994 19:55:28 +0000 (19:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 1 Sep 1994 19:55:28 +0000 (19:55 +0000)
logging.c

index 2b562b9c1fe561816cc7ac936b1f64c462a5e5e1..c34f0a4ca76e3ada27f628e3ddeb6788842182ac 100644 (file)
--- 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);