freebsd-ports/mail/scam-backscatter/files/patch-scam-back.c
Pav Lucistnik 7b2283bcfc scam-backscatter milter
Scam-backscatter prevents spam backscatter (accept and bounce) on
mail servers which don't host mailboxes locally. It validates
mailboxes by verifying the recipient addresses hosted on a different
mail server.

WWW:	http://www.elandsys.com/scam/scam-backscatter/

PR:		ports/147115
Submitted by:	Janne Snabb <snabb@epipe.com>
2010-08-26 14:57:15 +00:00

20 lines
582 B
C

--- scam-back.c.orig 2010-02-21 07:20:47.000000000 +0000
+++ scam-back.c 2010-05-26 17:39:32.000000000 +0000
@@ -437,7 +437,7 @@
#ifndef LINUX
#ifdef ALLDOMAINS
- backsslen = backss.ss_len
+ backsslen = backss.ss_len;
#else
backsslen = priv->backss.ss_len;
#ifdef FALLBACKEND
@@ -1174,7 +1174,7 @@
{
syslog (LOG_ERR, "cannot open pidfile");
} else {
- snprintf (buf, sizeof (buf), "%ld", (long) pid);
+ snprintf (buf, sizeof (buf), "%ld\n", (long) pid);
if (write (fd, buf, strlen (buf)) != strlen (buf)) {
syslog (LOG_ERR, "cannot write to pidfile");
}