summaryrefslogtreecommitdiff
path: root/mail/mailscanner/files/patch-bin:update_virus_scanners
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-02 18:40:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-02 18:40:41 +0000
commit32b3f6df373d1065019c6f1500b1bb33e1579fc4 (patch)
tree534f3a94e51d861a9bb598141a4e74c5cedb604d /mail/mailscanner/files/patch-bin:update_virus_scanners
parentUpdate to 1.5.1. (diff)
Add patches fixing these bugs:
- In certain conditions the update_virus_scanners script cannot kill the lock-file. Therefore all future updates of virus signatures fail. - If a mail contained too many attachment, it was blocked but the report was empty, confusing the sender. PR: ports/66046 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de> (maintainer)
Diffstat (limited to 'mail/mailscanner/files/patch-bin:update_virus_scanners')
-rw-r--r--mail/mailscanner/files/patch-bin:update_virus_scanners12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mailscanner/files/patch-bin:update_virus_scanners b/mail/mailscanner/files/patch-bin:update_virus_scanners
new file mode 100644
index 000000000000..a160c97304cc
--- /dev/null
+++ b/mail/mailscanner/files/patch-bin:update_virus_scanners
@@ -0,0 +1,12 @@
+--- ../MailScanner-4.29.7.orig/bin/update_virus_scanners Wed Apr 28 13:38:29 2004
++++ bin/update_virus_scanners Wed Apr 28 13:39:10 2004
+@@ -8,7 +8,8 @@
+ # the lockfile is not meant to be perfect, it's just in case the
+ # two cron scripts get run close to each other to keep them from
+ # stepping on each other's toes.
+-[ -f $LOCKFILE ] && exit 0
++
++[ -f $LOCKFILE ] && [ "`find $LOCKFILE -type f -mmin +60 -print`" = "" ] && exit 0
+ trap "rm -f $LOCKFILE" EXIT
+ touch $LOCKFILE
+