Article View: comp.bugs.4bsd
Article #363Sendmail 5.61 (and newer?) logging bug (minor)
From: Lyle Seaman
Date: Tue, 07 May 1991 15:55
Date: Tue, 07 May 1991 15:55
26 lines
1161 bytes
1161 bytes
Somewhere around line 408 of deliver.c (it's hard for me to
say, I've made some local mods without keeping good track :-()
there is this segment of code:
else {
*t++ = ',';
for (p = to->q_paddr; *p; *t++ = *p++);
}
It fails to null-terminate the list of recipients. This is usually
harmless. In cases where one of the recipients is unreachable,
the log line has extra text after the last recipient (usually part
of a name) which caused some problems for a mail flow summarizer
I wrote. Add this line:
*t='\0';
and get:
else {
*t++ = ',';
for (p = to->q_paddr; *p; *t++ = *p++);
*t='\0';/* 910506lws@wang.com */
}
--
Lyle 508 967 2322
lws@wang.com
Wang Labs, Lowell, MA, USA
Technical Details
Message-ID:
<1991May7.155505.5273@comm.wang.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!uunet!wang!comm.wang.com!lwsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!uunet!wang!comm.wang.com!lws From: lws@comm.wang.com (Lyle Seaman) Newsgroups: comp.bugs.4bsd Subject: Sendmail 5.61 (and newer?) logging bug (minor) Message-ID: <1991May7.155505.5273@comm.wang.com> Date: 7 May 91 15:55:05 GMT Organization: Wang Labs, Platform Comms. Lines: 26