From owner-freebsd-bugs Tue Feb 28 18:05:27 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id SAA28868 for bugs-outgoing; Tue, 28 Feb 1995 18:05:27 -0800 Received: from sequent.kiae.su (sequent.kiae.su [144.206.136.6]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id SAA28860 for ; Tue, 28 Feb 1995 18:05:22 -0800 Received: by sequent.kiae.su id AA21547 (5.65.kiae-2 ); Wed, 1 Mar 1995 05:01:39 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Wed, 1 Mar 95 05:01:38 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id FAA00443; Wed, 1 Mar 1995 05:02:52 +0300 To: bugs@FreeBSD.org, Paul Traina Cc: Serg Vakulenko References: <199503010056.QAA21722@feta.cisco.com> In-Reply-To: <199503010056.QAA21722@feta.cisco.com>; from Paul Traina at Tue, 28 Feb 1995 16:56:48 -0800 Message-Id: Organization: Olahm Ha-Yetzirah Date: Wed, 1 Mar 1995 05:02:51 +0300 X-Mailer: Mail/@ [v2.32 FreeBSD] From: "Andrey A. Chernov, Black Mage" X-Class: Fast Subject: Re: do not implement misc/186 Lines: 33 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1490 Sender: bugs-owner@FreeBSD.org Precedence: bulk In message <199503010056.QAA21722@feta.cisco.com> Paul Traina writes: >Subject: Re: misc/186: Sendmail incorrectly defines $s macro inside the rule #0 This fix already applied long time ago to our sources and you restore it after merging deliver.c changes. >------- Forwarded Message >Date: Tue, 28 Feb 1995 16:33:28 -0800 >From: Eric Allman >To: Paul Traina >cc: sendmail@cs.Berkeley.EDU >Subject: Re: misc/186: Sendmail incorrectly defines $s macro inside the rule #0 >I don't believe that is correct fix, since host isn't necessarily >meaningful at that point (e.g., for local mail), and CurHostName >is used for more than setting $s. The 8.7 code has that as just >setting CurHostName = NULL at that point -- you'll notice that it >gets reset later in the code if there is a valid host name. Right, it isn't meaningful just in _that_ point, but becomes meaningful later, so setting it to junk value not helps at all. Just look down into code, it resets later in some places, but not in _all_ cases. What happens if it isn't reset? I can answer: in this case it triggers a bug, since have junk value instead of host value. -- Andrey A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849