Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac,att!emory!wuarchive!waikato.ac.nz!comp.vuw.ac.nz!toor From: Andy.Linton@comp.vuw.ac.nz (Andy Linton) Newsgroups: comp.mail.sendmail Subject: sendmail 5.65b - bug in deliver.c Message-ID: <9103190141.AA20621@mailhost.comp.vuw.ac.nz> Date: 19 Mar 91 01:41:08 GMT Sender: toor@comp.vuw.ac.nz (Andy Linton) Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand. Lines: 32 In-Reply-To: Your message of "Tue, 11 Dec 90 17:26:33 CST." X-Mailer: mail-news 3.1 There is a problem in deliver.c in the new release when used on HP-UX 7.0 which causes mail to long lists to be delivered multiple times. In deliver.c there is new code to handle: Long syslog() entries are folded rather than truncated. This breaks on HP-UX as the buffer available in syslog is smaller than the constant LOGSPLIT. The size 128 for LOGSPLIT could possibly be larger (but < 200). I don't have time to fiddle with it at present. The mulitiple delivery occurs when the sendmail child dies after handing the mail for delivery to e.g. /bin/mail but before deleting the queue files. The following code solves the problem: -- *** deliver.c.orig Tue Mar 19 10:16:07 1991 --- deliver.c Tue Mar 19 12:17:05 1991 *************** *** 1216,1222 **** --- 1216,1226 ---- const char *stat; { # ifdef LOG + # if defined(hpux) + # define LOGSPLIT 128 + # else /* hpux */ # define LOGSPLIT 900 + # endif /* hpux */ register char *p, *q; /*