pretty up message that include() prints
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 21 Aug 1981 05:50:19 +0000 (21:50 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 21 Aug 1981 05:50:19 +0000 (21:50 -0800)
SCCS-vsn: usr.sbin/sendmail/src/recipient.c 3.3

usr/src/usr.sbin/sendmail/src/recipient.c

index b7c1560..2c12e85 100644 (file)
@@ -8,7 +8,7 @@
 # include <syslog.h>
 # endif LOG
 
 # include <syslog.h>
 # endif LOG
 
-static char SccsId[] = "@(#)recipient.c        3.2     %G%";
+static char SccsId[] = "@(#)recipient.c        3.3     %G%";
 
 /*
 **  SENDTO -- Designate a send list.
 
 /*
 **  SENDTO -- Designate a send list.
@@ -229,6 +229,7 @@ include(fname, msg)
 {
        char buf[MAXLINE];
        register FILE *fp;
 {
        char buf[MAXLINE];
        register FILE *fp;
+       char *oldto = To;
 
        fp = fopen(fname, "r");
        if (fp == NULL)
 
        fp = fopen(fname, "r");
        if (fp == NULL)
@@ -246,7 +247,7 @@ include(fname, msg)
                        *p = '\0';
                if (buf[0] == '\0')
                        continue;
                        *p = '\0';
                if (buf[0] == '\0')
                        continue;
-               To = fname;
+               To = oldto;
                if (Verbose)
                        message(Arpa_Info, "%s to %s", msg, buf);
                AliasLevel++;
                if (Verbose)
                        message(Arpa_Info, "%s to %s", msg, buf);
                AliasLevel++;