Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 07:27:03 GMT
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/146692: [patch] mail/ssmpt -- use full paths in MAILERCONF
Message-ID:  <201005180727.o4I7R3Op066474@tucana.bfh.ch>
Resent-Message-ID: <201005180730.o4I7U5gE080567@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         146692
>Category:       ports
>Synopsis:       [patch] mail/ssmpt -- use full paths in MAILERCONF
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 18 07:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 9.0-CURRENT sparc64
>Organization:
The FreeBSD Project
>Environment:
System: FreeBSD tucana.bfh.ch 9.0-CURRENT FreeBSD 9.0-CURRENT #1: Thu Mar 25 13:59:51 CET 2010 root@tucana.bfh.ch:/usr/obj/usr/src/sys/TUCANA sparc64

>Description:

ssmtp sets the MAILERCONF programs hoststat and purgestat to TRUE, which is defined as the sh's built-in 'true' in bsd.commands.mk.
In periodic, mailwrapper isn't run under a shell, so true is not defined. You can see that from the daily output:

Removing stale entries from sendmail host status cache:
mailwrapper: cannot exec true: No such file or directory

>How-To-Repeat:
Install ssmtp, wait for the next daily periodic run.
>Fix:


Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/ssmtp/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	7 Dec 2009 16:46:49 -0000	1.30
+++ Makefile	18 May 2010 07:22:06 -0000
@@ -69,8 +69,8 @@
 	@${ECHO_CMD} "send-mail	${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
 	@${ECHO_CMD} "mailq		${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
 	@${ECHO_CMD} "newaliases	${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
-	@${ECHO_CMD} "hoststat	${TRUE}" >> ${MAILERCONF}
-	@${ECHO_CMD} "purgestat	${TRUE}" >> ${MAILERCONF}
+	@${ECHO_CMD} "hoststat	/usr/bin/true" >> ${MAILERCONF}
+	@${ECHO_CMD} "purgestat	/usr/bin/true" >> ${MAILERCONF}
 
 pre-su-install:
 	@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005180727.o4I7R3Op066474>