v10i052: PC-MAIL release 2, patch2

Wietse Venema wswietse at lso.win.tue.nl
Wed Feb 14 12:52:28 AEST 1990


Posting-number: Volume 10, Issue 52
Submitted-by: wswietse at lso.win.tue.nl (Wietse Venema)
Archive-name: pcmail2/patch02

The following patch corrects a counting error in the pc-mail daemon
software that caused the pc-maild program to generate garbled To: 
header lines. The problem shows up only if mail transport is done by 
daemon processes running on a file server. This unfortunate error 
must have crept in when I merged changes from different production 
versions of the same source.

In order to apply the patch, cd to the daemon subdirectory of the
pc-mail source distribution, and feed this message to the patch 
program. If you do not have patch, the changes are minimal and can 
easily be applied by hand.

*** pc-maild.c-	Tue Jan 30 11:58:24 1990
--- pc-maild.c	Tue Jan 30 11:36:08 1990
***************
*** 50,62 ****
  /* CREATION DATE
  /*	Sun Oct 22 22:12:15 MED 1989
  /* LAST MODIFICATION
! /*	1/6/90 19:45:05
  /* VERSION/RELEASE
! /*	1.6
  /*--*/
  
  #ifndef lint
! static char sccsid[] = "@(#) pc-maild.c 1.6 1/6/90 19:45:05";
  
  #endif
  
--- 50,62 ----
  /* CREATION DATE
  /*	Sun Oct 22 22:12:15 MED 1989
  /* LAST MODIFICATION
! /*	1/30/90 11:42:09
  /* VERSION/RELEASE
! /*	1.7
  /*--*/
  
  #ifndef lint
! static char sccsid[] = "@(#) pc-maild.c 1.7 1/30/90 11:42:09";
  
  #endif
  
***************
*** 432,438 ****
      (void) fprintf(pfp, "From: %s (%s)\n", uinfo->pw_name,
  	    fullname(uinfo));			/* add From: header line */
      for (name = strtok(dest, sep); name; name = strtok((char *) 0, sep))
! 	(void) fprintf(pfp, "%s%s", n == 0 ? "To: " : ",\n    ", name);
      if (n)
  	(void) putc('\n', pfp);
  }
--- 432,438 ----
      (void) fprintf(pfp, "From: %s (%s)\n", uinfo->pw_name,
  	    fullname(uinfo));			/* add From: header line */
      for (name = strtok(dest, sep); name; name = strtok((char *) 0, sep))
! 	(void) fprintf(pfp, "%s%s", n++ == 0 ? "To: " : ",\n    ", name);
      if (n)
  	(void) putc('\n', pfp);
  }



More information about the Comp.sources.misc mailing list