aboutsummaryrefslogtreecommitdiffstats
path: root/mail/antivirus-milter
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-07-07 11:58:51 +0800
committerdinoex <dinoex@FreeBSD.org>2005-07-07 11:58:51 +0800
commit8517403a9b6090808beb3e26a85da521fcfe7434 (patch)
tree9de9006d1995015675f58593e5c63e525b1b1572 /mail/antivirus-milter
parentd43b1bddf9767d47a2c462a2e87ee262ea53b292 (diff)
downloadfreebsd-ports-graphics-8517403a9b6090808beb3e26a85da521fcfe7434.tar.gz
freebsd-ports-graphics-8517403a9b6090808beb3e26a85da521fcfe7434.tar.zst
freebsd-ports-graphics-8517403a9b6090808beb3e26a85da521fcfe7434.zip
- fix CONF_AVFAILACTION for all scanners
Diffstat (limited to 'mail/antivirus-milter')
-rw-r--r--mail/antivirus-milter/Makefile2
-rw-r--r--mail/antivirus-milter/files/patch-antivirus.c20
2 files changed, 17 insertions, 5 deletions
diff --git a/mail/antivirus-milter/Makefile b/mail/antivirus-milter/Makefile
index e7cabd55057..da1479f04c1 100644
--- a/mail/antivirus-milter/Makefile
+++ b/mail/antivirus-milter/Makefile
@@ -7,7 +7,7 @@
PORTNAME= antivirus
PORTVERSION= 3.30
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dinoex
diff --git a/mail/antivirus-milter/files/patch-antivirus.c b/mail/antivirus-milter/files/patch-antivirus.c
index 73d3cbb5249..684830317a4 100644
--- a/mail/antivirus-milter/files/patch-antivirus.c
+++ b/mail/antivirus-milter/files/patch-antivirus.c
@@ -1,5 +1,5 @@
--- antivirus.c.orig Tue Jul 15 21:27:14 2003
-+++ antivirus.c Wed Nov 17 07:19:12 2004
++++ antivirus.c Mon Jun 20 17:45:16 2005
@@ -85,6 +85,8 @@
static char *FORMAT=NULL;
static sfsistat avfailcode=0;
@@ -39,7 +39,7 @@
+ if ( retval == 2 )
+ retval = 0;
+ }
-+
++
if (retval>0)
{
fseek(priv->childfp,0,SEEK_SET);
@@ -58,7 +58,19 @@
{
if (viruses[0])
strncat(viruses," ",sizeof(viruses));
-@@ -1211,6 +1233,7 @@
+@@ -572,10 +594,8 @@
+ if (viruses[0])
+ priv->viruses=strdup(viruses);
+ else
+- priv->viruses=strdup("please contact postmaster");
+-
+- if ((priv->viruses)==NULL)
+ {
++ priv->viruses=strdup("please contact postmaster");
+ return(avfailcode);
+ }
+ return(SMFIS_REJECT);
+@@ -1211,6 +1231,7 @@
if (AVFAILACTION==NULL) AVFAILACTION=CONF_AVFAILACTION;
if (VIRUSACTION==NULL) VIRUSACTION=CONF_VIRUSACTION;
@@ -66,7 +78,7 @@
if (strcasecmp(AVPRODUCT,"mcafee")==0)
{
FORMAT=FORMAT_MCAFEE;
-@@ -1225,10 +1248,17 @@
+@@ -1225,10 +1246,17 @@
{
FORMAT=FORMAT_FSAV;
}