aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailscanner/files/patch-lib:antivir-autoupdate
blob: f0df80948bd92489e03f9222ec5f9f6ab8b92b7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- ../MailScanner-install-4.34.8.orig/lib/antivir-autoupdate   Wed Oct 20 08:09:38 2004
+++ lib/antivir-autoupdate  Wed Oct 20 08:10:10 2004
@@ -9,7 +9,8 @@
 
 $PackageDir = shift || "/usr/lib/AntiVir";
 
-$AntiVirUpdateCommand = "$PackageDir/antivir --update";
+$AntiVirCommand = "$PackageDir/antivir";
+$AntiVirUpdateCommand = "$AntiVirCommand --update";
 
 $LockFile = "/tmp/AntiVirBusy.lock";
 
@@ -24,7 +25,7 @@
 BailOut("Installation dir \"$PackageDir\" does not exist!")
   unless $PackageDir ne "" && -d $PackageDir;
 
-if (-x $AntiVirUpdateCommand) {
+if (-x $AntiVirCommand) {
   # Timeout prevention
   $SIG{ALRM} = sub { die "timeout"};