[Mimedefang] BUG in virus scanning code

Mickey Hill mickey at rudolphtire.com
Fri May 10 18:45:33 EDT 2002


> When I changed all instances of Virus:NAI to Virus::NAI, it worked
> much better.  

I kept looking, and it looks like a single colon is the norm.  So, all
instances should be Virus:NAI?  This looks like only two changes, around
lines 1432 and 1458.

-------------------------
Mickey Hill
Rudolph's Inc
2021 Rob Mason Rd
PO Box 69
Murray KY 42071 USA
Phone (270) 753-0686 x124
Fax   (270) 753-0753
mickey at rudolphtire.com
www.rudolphtire.com


> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com 
> [mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf 
> Of Mickey Hill
> Sent: Friday, May 10, 2002 5:25 PM
> To: 'MIMEDefang Mailing List'
> Subject: [Mimedefang] BUG in virus scanning code
> 
> 
> Hi all,
> 
> My virus scanner doesn't work any more!  On further investigation, I
> found that there is a $Features{'Virus:NAI'} as well as a
> $Features{'Virus::NAI'}.  See the difference?  When I changed all
> instances of Virus:NAI to Virus::NAI, it worked much better.  Similar
> problem with all other virus scanners around line 59 in
> mimedefang.pl......
> 
> Don't know if I fixed it the right way, but here's what I did.
> 
> diff -u mimedefang.pl /usr/local/bin/mimedefang.pl 
> 
> --- mimedefang.pl       Fri May 10 17:18:49 2002
> +++ /usr/local/bin/mimedefang.pl        Fri May 10 17:14:55 2002
> @@ -59,7 +59,7 @@
>  
>  $Features{'Virus:FileScan'} = $Features{'File::Scan'};
>  $Features{'Virus:OpenAV'}   = 1;  # Not a good idea but we 
> need a test!
> -$Features{'Virus:NAI'}      = ("/usr/local/bin/uvscan" ne 
> "/bin/false"
> ? "/usr/local/bin/uvscan" : 0);
> +$Features{'Virus::NAI'}     = ("/usr/local/bin/uvscan" ne 
> "/bin/false"
> ? "/usr/local/bin/uvscan" : 0);
>  $Features{'Virus:HBEDV'}    = ("/bin/false" ne "/bin/false" ?
> "/bin/false" : 0);
>  $Features{'Virus:SOPHOS'}   = ("/bin/false" ne "/bin/false" ?
> "/bin/false" : 0);
>  $Features{'Virus:AVP'}      = ("/bin/false" ne "/bin/false" ?
> "/bin/false" : 0);
> @@ -1429,7 +1429,7 @@
>  
>      # Run uvscan
>      my($code, $category, $action) =
> -       run_virus_scanner($Features{'Virus:NAI'} . " --noboot --secure
> --allole $path 2>&1");
> +       run_virus_scanner($Features{'Virus::NAI'} . " 
> --noboot --secure
> --allole $path 2>&1");
>      if ($action ne 'proceed') {
>         return (wantarray ? ($code, $category, $action) : $code);
>      }
> @@ -1455,7 +1455,7 @@
>  
>      # Run uvscan
>      my($code, $category, $action) =
> -       run_virus_scanner($Features{'Virus:NAI'} . " --noboot --secure
> --allole ./Work 2>&1");
> +       run_virus_scanner($Features{'Virus::NAI'} . " 
> --noboot --secure
> --allole ./Work 2>&1");
>      if ($action ne 'proceed') {
>         return (wantarray ? ($code, $category, $action) : $code);
>      }
> 
> -------------------------
> Mickey Hill
> Rudolph's Inc
> 2021 Rob Mason Rd
> PO Box 69
> Murray KY 42071 USA
> Phone (270) 753-0686 x124
> Fax   (270) 753-0753
> mickey at rudolphtire.com
> www.rudolphtire.com
> 
> 
> 
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
> 






More information about the MIMEDefang mailing list