minor bug in creating mail address list.
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 5 Jan 1984 01:57:21 +0000 (17:57 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 5 Jan 1984 01:57:21 +0000 (17:57 -0800)
SCCS-vsn: usr.bin/rdist/docmd.c 4.12

usr/src/usr.bin/rdist/docmd.c

index 68d1d4c..44eba96 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)docmd.c     4.11 (Berkeley) 83/12/19";
+static char *sccsid = "@(#)docmd.c     4.12 (Berkeley) 84/01/04";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -367,13 +367,13 @@ notify(file, rhost, to, lmod)
         */
        fprintf(pf, "From: rdist (Remote distribution program)\n");
        fprintf(pf, "To:");
         */
        fprintf(pf, "From: rdist (Remote distribution program)\n");
        fprintf(pf, "To:");
-       if (!any('@', to->b_name) && host != NULL)
+       if (!any('@', to->b_name) && rhost != NULL)
                fprintf(pf, " %s@%s", to->b_name, rhost);
        else
                fprintf(pf, " %s", to->b_name);
        to = to->b_next;
        while (to != NULL) {
                fprintf(pf, " %s@%s", to->b_name, rhost);
        else
                fprintf(pf, " %s", to->b_name);
        to = to->b_next;
        while (to != NULL) {
-               if (!any('@', to->b_name) && host != NULL)
+               if (!any('@', to->b_name) && rhost != NULL)
                        fprintf(pf, ", %s@%s", to->b_name, rhost);
                else
                        fprintf(pf, ", %s", to->b_name);
                        fprintf(pf, ", %s@%s", to->b_name, rhost);
                else
                        fprintf(pf, ", %s", to->b_name);