rmail/sendmail (BSD4.2) problem.

eric%ucbarpa at UCB-VAX.ARPA eric%ucbarpa at UCB-VAX.ARPA
Sun Sep 9 08:47:00 AEST 1984


From:  Eric Allman <eric%ucbarpa at UCB-VAX.ARPA>

In the initial 4.2 release there was a bug in /bin/mail that caused
incoming UUCP mail to be discarded, although /bin/mail returned a
zero ("ok") exit status (this caused sendmail to falsely assume that
the mail had been successfully delivered).  The command "what /bin/mail"
will verify this -- if mail.c is version 4.18, you have the problem.

The fix is:


Sep  8 15:41 1984  SCCS/s.mail.c: -r4.18 vs. -r4.19 Page 1


449,453c449,457
< 			if (strcmp(my_name, "root") &&
< 			    strcmp(my_name, "daemon") &&
< 			    strcmp(my_name, "network")) {
< 				usage();
< 				done();
---
> 			if (strcmp(my_name, "root") == 0 ||
> 			    strcmp(my_name, "daemon") == 0 ||
> 			    strcmp(my_name, "network") == 0 ||
> 			    strcmp(my_name, "uucp")) {
> 				gaver++;
> 				strcpy(truename, argv[1]);
> 				fgets(line, LSIZE, stdin);
> 				if (strncmp("From", line, 4) == 0)
> 					line[0] = '\0';
455,459d458
< 			gaver++;
< 			strcpy(truename, argv[1]);
< 			fgets(line, LSIZE, stdin);
< 			if (strcmpn("From", line, 4) == 0)
< 				line[0] = '\0';
494c493
< 		if (strcmpn("From", line, 4) == 0)
---
> 		if (strncmp("From", line, 4) == 0)

THIS FIX IS CRITICAL!!!!  Do not fail to install it.

Later 4.2 tapes (I'm not sure the relevant serial number) have the fix).

eric allman



More information about the Comp.unix.wizards mailing list