Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!sri-unix!eric%ucbarpa@UCB-VAX.ARPA From: eric%ucbarpa@UCB-VAX.ARPA Newsgroups: net.unix-wizards Subject: Re: rmail/sendmail (BSD4.2) problem. Message-ID: <13303@sri-arpa.UUCP> Date: Sat, 8-Sep-84 18:47:00 EDT Article-I.D.: sri-arpa.13303 Posted: Sat Sep 8 18:47:00 1984 Date-Received: Fri, 14-Sep-84 04:56:04 EDT Lines: 46 From: Eric Allman 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