From nobody@FreeBSD.org  Wed Oct 20 07:00:59 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 519BD16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Oct 2004 07:00:59 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4549843D60
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Oct 2004 07:00:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9K70x9W095704
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Oct 2004 07:00:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9K70xlT095703;
	Wed, 20 Oct 2004 07:00:59 GMT
	(envelope-from nobody)
Message-Id: <200410200700.i9K70xlT095703@www.freebsd.org>
Date: Wed, 20 Oct 2004 07:00:59 GMT
From: Daniele Pilenga <dpilenga@libero.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /etc/rc.d/sendmail does not correctly call sendmail_precmd() 
X-Send-Pr-Version: www-2.3

>Number:         72910
>Category:       conf
>Synopsis:       [patch] /etc/rc.d/sendmail does not correctly call sendmail_precmd()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 20 07:10:20 GMT 2004
>Closed-Date:    Mon Sep 05 15:59:59 GMT 2005
>Last-Modified:  Mon Sep 05 15:59:59 GMT 2005
>Originator:     Daniele Pilenga
>Release:        5.3RC1
>Organization:
>Environment:
FreeBSD  5.3-RC1 FreeBSD 5.3-RC1 #0: Tue Oct 19 15:04:20 CEST 2004     root@ConfigFreeBSDVM:/usr/obj/usr/src/sys/DISKLESS  i386
>Description:
The startup script /etc/rc.d/sendmail does not define start_precmd variable before calling run_rc_command and therefore the sendmail_precmd routing does not get called.
>How-To-Repeat:
If there is no /etc/mail/aliases.db the startup script is espected to create it using the newaliases command, it does not.
>Fix:
This little patch will fix it:

--- /etc/rc.d/sendmail.orig     Tue Oct 12 12:26:20 2004
+++ /etc/rc.d/sendmail  Wed Oct 20 08:39:45 2004
@@ -70,7 +70,9 @@
        fi
 }
 
+start_precmd="sendmail_precmd"
 run_rc_command "$1"
+unset start_precmd
 
 required_files=
 

>Release-Note:
>Audit-Trail:

From: Matteo Riondato <matteo@freebsd.org>
To: bug-followup@freebsd.org, dpilenga@libero.it,
	gshapiro@freebsd.org
Cc:  
Subject: Re: conf/72910: [patch] /etc/rc.d/sendmail does not correctly
Date: Sun, 26 Jun 2005 16:39:13 +0200

 call sendmail_precmd()
 Reply-To: 
 
 New patch at http://people.freebsd.org/~matteo/diff/sendmail.diff
 (gshapiro@ CC'ed as he takes care of sendmail stuff)
 Best Regards
 -- 
 Matteo Riondato
 FreeBSD Volunteer (http://freebsd.org)
 G.U.F.I. Staff Member (http://www.gufi.org)
 FreeSBIE Developer (http://www.freesbie.org)
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Mon Jun 27 16:50:35 GMT 2005 
Responsible-Changed-Why:  
Assign this to gshapiro as he takes care of the sendmail stuff 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72910 
State-Changed-From-To: open->patched 
State-Changed-By: gshapiro 
State-Changed-When: Tue Aug 30 03:40:58 GMT 2005 
State-Changed-Why:  
I've applied Matteo's patch to the HEAD and will MFC after 3 days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72910 
State-Changed-From-To: patched->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Sep 5 15:59:39 GMT 2005 
State-Changed-Why:  
The fix has been MFC'ed to all of the branches.  Thanks for the patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72910 
>Unformatted:
