From vak@gw.cronyx.msk.su  Wed Jan 25 11:17:31 1995
Received: from gw.cronyx.msk.su (gw.cronyx.srcc.msu.su [158.250.244.2]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id LAA22911 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jan 1995 11:17:27 -0800
Received: from localhost by gw.cronyx.msk.su id WAA00898;
  (8.6.5/vak/1.9) Wed, 25 Jan 1995 22:13:46 +0300
Message-Id: <199501251913.WAA00898@gw.cronyx.msk.su>
Date: Wed, 25 Jan 1995 22:13:46 +0300
From: vak@cronyx.msk.su
Reply-To: vak@cronyx.msk.su
To: FreeBSD-gnats-submit@freebsd.org
Subject: Sendmail incorrectly defines $s macro inside the rule #0
X-Send-Pr-Version: 3.2

>Number:         186
>Category:       misc
>Synopsis:       Sendmail incorrectly defines $s macro inside the rule #0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 25 11:20:01 1995
>Closed-Date:    Fri Jan 27 20:12:36 PST 1995
>Last-Modified:
>Originator:     Serge V.Vakulenko
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Cronyx Ltd.
>Environment:
>Description:

	The $&s macro has incorrect value inside the rule #0.
	Those configurations in which the e-mail route depends
	on the name of the sender host don't work.

>How-To-Repeat:
>Fix:
	The following patch fixes it.

--- /usr/src/usr.sbin/sendmail/src/deliver.c	Thu May 26 09:23:15 1994
+++ ./deliver.c	Sun May  1 22:05:42 1994
@@ -950,7 +931,7 @@
 	}
 	errno = 0;
 
-	CurHostName = m->m_mailer;
+	CurHostName = host;
 
 	/*
 	**  Deal with the special case of mail handled through an IPC
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Fri Jan 27 20:12:36 PST 1995 
State-Changed-Why:  
Fix applied. 
>Unformatted:



