Filetype reports bug in 4.26.8 (+ fix)

Hirsh, Joshua joshua.hirsh at PARTNERSOLUTIONS.CA
Fri Feb 27 14:15:06 GMT 2004


Hey Julian,

 I just had time to install 4.26.8 on my system yesterday. I noticed that
this same bug has crept up again. Included below was the original patch to
fix it.

 The bug manifests itself as the following lines in notifications to the
admin:

    Report: attachment.txt.pif was infected by W32/Netsky-B
            :  No programs allowed (attachment.txt.pif)

    Report: misc.scr was infected by W32/Netsky-B
            :  No programs allowed (misc.scr)


 The bug is on line 1201 of Message.pm in 4.26.8. Can you patch this up for
the next release?


 Thanks,
-Joshua

-----Original Message-----
From: Mariano Absatz [mailto:mailscanner at LISTS.COM.AR]
Sent: Tuesday, October 07, 2003 5:27 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Filetype Reports in 4.24-5


Yup... it seems to be originated in my code, but I don't know if Julian
modified this or not... however, try using
this patch (WARNING!!!!! NOT TESTED):

--- Message.pm.orig     Tue Oct  7 18:18:40 2003
+++ Message.pm  Tue Oct  7 18:19:40 2003
@@ -1014,7 +1014,7 @@
   }
   while (($file, $text) = each %{$this->{namereports}}) {
     #print STDERR "Adding file $file report $text\n";
-    $text =~ s/\n(.)/\n$Name:  $1/g; # Make sure name is at the front of
this
+    $text =~ s/\n(.)/\n$Name $1/g if $Name ; # Make sure name is at the
front of this
     $this->{allreports}{$file} .= $Name . $text;
   }
   while (($file, $text) = each %{$this->{nametypes}}) {



More information about the MailScanner mailing list