From 356262e6d116b73d4cd96d5b5ab5af37fc754a65 Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Fri, 20 Sep 1985 16:43:20 -0800 Subject: [PATCH] print cute labels on programs communicating with SMTP SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 5.11 SCCS-vsn: usr.sbin/sendmail/src/version.c 5.16 --- usr/src/usr.sbin/sendmail/src/srvrsmtp.c | 11 +++++++++-- usr/src/usr.sbin/sendmail/src/version.c | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/usr/src/usr.sbin/sendmail/src/srvrsmtp.c b/usr/src/usr.sbin/sendmail/src/srvrsmtp.c index cfcfd7b44e..fa3da45961 100644 --- a/usr/src/usr.sbin/sendmail/src/srvrsmtp.c +++ b/usr/src/usr.sbin/sendmail/src/srvrsmtp.c @@ -15,12 +15,12 @@ # ifndef SMTP # ifndef lint -static char SccsId[] = "@(#)srvrsmtp.c 5.10 (Berkeley) %G% (no SMTP)"; +static char SccsId[] = "@(#)srvrsmtp.c 5.11 (Berkeley) %G% (no SMTP)"; # endif not lint # else SMTP # ifndef lint -static char SccsId[] = "@(#)srvrsmtp.c 5.10 (Berkeley) %G%"; +static char SccsId[] = "@(#)srvrsmtp.c 5.11 (Berkeley) %G%"; # endif not lint /* @@ -117,6 +117,13 @@ smtp() (void) dup(fileno(OutChannel)); } settime(); + if (RealHostName != NULL) + { + static char status[100]; + + (void) sprintf(status, "talking to %s", RealHostName); + setproctitle(status); + } expand("\001e", inp, &inp[sizeof inp], CurEnv); message("220", inp); SmtpPhase = "startup"; diff --git a/usr/src/usr.sbin/sendmail/src/version.c b/usr/src/usr.sbin/sendmail/src/version.c index 3a2b65d29e..9a1dd26835 100644 --- a/usr/src/usr.sbin/sendmail/src/version.c +++ b/usr/src/usr.sbin/sendmail/src/version.c @@ -9,7 +9,7 @@ */ #ifndef lint -static char SccsId[] = "@(#)version.c 5.15 (Berkeley) %G%"; +static char SccsId[] = "@(#)version.c 5.16 (Berkeley) %G%"; #endif not lint -char Version[] = "5.15"; +char Version[] = "5.16"; -- 2.20.1