]> git.pld-linux.org Git - packages/amavisd.git/commitdiff
fix
authoringlod <inglod@pld-linux.org>
Fri, 26 Apr 2002 12:52:14 +0000 (12:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amavisd-mks_vir.patch -> 1.6

amavisd-mks_vir.patch

index 1eac48c8603c5d7da4fd656331064255315122a7..e0d46c5807d18e42afb91bdeca1513d5d1c7eb54 100644 (file)
@@ -41,11 +41,11 @@ diff -urN amavis-snapshot-20010714-orig/amavis/av/mksvir amavis-snapshot-2001071
 +
 +
 +if ($mksvir ne "") {
-+        $output = `$mksvir -f /etc/mks.cfg -s $TEMPDIR/parts/* 2>&1`;
++        $output = `$mksvir -s $TEMPDIR/parts/* 2>&1`;
 +        $errval = ($? >> 8);
 +        do_log(2,$output);
 +        if ($errval != 0) {
-+                if ($output =~ /file.*virus/) { # exit codes aren't as reliable as it seems :(
++                if ($errval == 1) {
 +                        @virusname = ($output =~ /file.*virus (.+)/g);
 +                        do_virus($output);
 +                } else {
This page took 0.103334 seconds and 4 git commands to generate.