From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 20 07:10:21 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2025C16A4CE for ; Wed, 20 Oct 2004 07:10:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E95C343D46 for ; Wed, 20 Oct 2004 07:10:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9K7AKY2011631 for ; Wed, 20 Oct 2004 07:10:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9K7AKmM011630; Wed, 20 Oct 2004 07:10:20 GMT (envelope-from gnats) Resent-Date: Wed, 20 Oct 2004 07:10:20 GMT Resent-Message-Id: <200410200710.i9K7AKmM011630@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniele Pilenga Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 519BD16A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/72910: /etc/rc.d/sendmail does not correctly call sendmail_precmd() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 07:10:21 -0000 >Number: 72910 >Category: misc >Synopsis: /etc/rc.d/sendmail does not correctly call sendmail_precmd() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 20 07:10:20 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: