home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / pcmail2 / patch02 < prev    next >
Text File  |  1990-02-13  |  2KB  |  73 lines

  1. Newsgroups: comp.sources.misc
  2. organization: Eindhoven University of Technology, The Netherlands
  3. keywords: daemon
  4. subject: v10i052: PC-MAIL release 2, patch2
  5. from: wswietse@lso.win.tue.nl (Wietse Venema)
  6. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  7.  
  8. Posting-number: Volume 10, Issue 52
  9. Submitted-by: wswietse@lso.win.tue.nl (Wietse Venema)
  10. Archive-name: pcmail2/patch02
  11.  
  12. The following patch corrects a counting error in the pc-mail daemon
  13. software that caused the pc-maild program to generate garbled To: 
  14. header lines. The problem shows up only if mail transport is done by 
  15. daemon processes running on a file server. This unfortunate error 
  16. must have crept in when I merged changes from different production 
  17. versions of the same source.
  18.  
  19. In order to apply the patch, cd to the daemon subdirectory of the
  20. pc-mail source distribution, and feed this message to the patch 
  21. program. If you do not have patch, the changes are minimal and can 
  22. easily be applied by hand.
  23.  
  24. *** pc-maild.c-    Tue Jan 30 11:58:24 1990
  25. --- pc-maild.c    Tue Jan 30 11:36:08 1990
  26. ***************
  27. *** 50,62 ****
  28.   /* CREATION DATE
  29.   /*    Sun Oct 22 22:12:15 MED 1989
  30.   /* LAST MODIFICATION
  31. ! /*    1/6/90 19:45:05
  32.   /* VERSION/RELEASE
  33. ! /*    1.6
  34.   /*--*/
  35.   
  36.   #ifndef lint
  37. ! static char sccsid[] = "@(#) pc-maild.c 1.6 1/6/90 19:45:05";
  38.   
  39.   #endif
  40.   
  41. --- 50,62 ----
  42.   /* CREATION DATE
  43.   /*    Sun Oct 22 22:12:15 MED 1989
  44.   /* LAST MODIFICATION
  45. ! /*    1/30/90 11:42:09
  46.   /* VERSION/RELEASE
  47. ! /*    1.7
  48.   /*--*/
  49.   
  50.   #ifndef lint
  51. ! static char sccsid[] = "@(#) pc-maild.c 1.7 1/30/90 11:42:09";
  52.   
  53.   #endif
  54.   
  55. ***************
  56. *** 432,438 ****
  57.       (void) fprintf(pfp, "From: %s (%s)\n", uinfo->pw_name,
  58.           fullname(uinfo));            /* add From: header line */
  59.       for (name = strtok(dest, sep); name; name = strtok((char *) 0, sep))
  60. !     (void) fprintf(pfp, "%s%s", n == 0 ? "To: " : ",\n    ", name);
  61.       if (n)
  62.       (void) putc('\n', pfp);
  63.   }
  64. --- 432,438 ----
  65.       (void) fprintf(pfp, "From: %s (%s)\n", uinfo->pw_name,
  66.           fullname(uinfo));            /* add From: header line */
  67.       for (name = strtok(dest, sep); name; name = strtok((char *) 0, sep))
  68. !     (void) fprintf(pfp, "%s%s", n++ == 0 ? "To: " : ",\n    ", name);
  69.       if (n)
  70.       (void) putc('\n', pfp);
  71.   }
  72.  
  73.