From rsimmons@mail.wlcg.com  Sun Mar 11 15:59:37 2001
Return-Path: <rsimmons@mail.wlcg.com>
Received: from mail.wlcg.com (mail.wlcg.com [207.226.17.4])
	by hub.freebsd.org (Postfix) with ESMTP id 3352737B718
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Mar 2001 15:59:36 -0800 (PST)
	(envelope-from rsimmons@mail.wlcg.com)
Received: (from rsimmons@localhost)
	by mail.wlcg.com (8.11.3/8.11.3) id f2BNxac09313;
	Sun, 11 Mar 2001 18:59:36 -0500 (EST)
	(envelope-from rsimmons)
Message-Id: <200103112359.f2BNxac09313@mail.wlcg.com>
Date: Sun, 11 Mar 2001 18:59:36 -0500 (EST)
From: Rob Simmons <rsimmons@mail.wlcg.com>
Reply-To: rsimmons@mail.wlcg.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Failure in sendmail.cf creation leaves temp files behind.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25715
>Category:       conf
>Synopsis:       Failure in sendmail.cf creation leaves temp files behind.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 11 16:00:01 PST 2001
>Closed-Date:    Fri May 11 20:13:11 PDT 2001
>Last-Modified:  Fri May 11 20:14:03 PDT 2001
>Originator:     Rob Simmons
>Release:        FreeBSD 4.3-BETA i386
>Organization:
>Environment:
System: FreeBSD mail 4.3-BETA FreeBSD 4.3-BETA #0: Sat Mar 10 16:56:04 EST 2001 acundari@mail:/usr/obj/usr/src/sys/WASABI i386


	
>Description:
When you use the new Makefile in /etc/mail to create a cf file with 'make cf' and you have set DOMAIN() to a domain that does not have a corrosponding m4 file in /usr/share/sendmail/cf/domain the process will not complete (which is ok), but it leaves its temporary m4 file in /tmp without removing it.
	
>How-To-Repeat:
In the file /etc/mail/freebsd.mc change the line DOMAIN(generic) to DOMAIN(test) and make sure that /usr/share/sendmail/cf/domain/test.m4 does not exist.  Now run 'make cf' in /etc/mail.  You will get the following error:
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 freebsd.mc > freebsd.cf
m4: /usr/share/sendmail/cf/domain/test.m4: No such file or directory
*** Error code 1

Stop in /etc/mail.

Now go look in /tmp and you will find a directory that starts with m4 and contains a temporary m4 file.  After the 'make cf' this file should be cleaned out of /tmp, but it is not.
	
>Fix:
I'm not an m4 expert, I'm not sure how to fix this problem.

	
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sun Mar 11 16:12:58 PST 2001 
Responsible-Changed-Why:  
Greg is Mr. Sendmail 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25715 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Mon Apr 16 11:36:43 PDT 2001 
State-Changed-Why:  
This was actually an m4 bug, not a sendmail bug.  m4 would not clean up 
after itself if it exited prematurely.  A fix has been committed to 
the HEAD (-CURRENT).  If all goes well, it will be MFC'ed to RELENG_4. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25715 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Fri May 11 20:13:11 PDT 2001 
State-Changed-Why:  
The fix to m4 has been MFC'ed into RELENG_4 (-STABLE). 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25715 
>Unformatted:
