{Scanned} bitdefender updates

Christian Kowarzik ckowarzik at EMAIL.DE
Wed Nov 3 10:57:03 GMT 2004


I have the same problem.
I called the script /usr/lib/MailScanner/bitdefender-autoupdate manually and it dies with the error:
Can't call method "getlines" on an undefined value at /usr/lib/MailScanner/bitdefender-autoupdate
line 352.

I think, this is because the 'sub countViruses($file)' is missing the file '$file' and then dies
rather than logging the error and then continuing.

Here is the code:

---
sub countViruses
{
         # apro il file e conto il numero dei virus protetti
         $fh = new IO::File  "< $_[0]" || &updateLog( "no input file found!");
         @lines = $fh->getlines; # here is line 352
         $fh->close;
         my $lines = @lines - $ignoreLines;
         &updateLog ("*** You're now protected against $lines viruses ...");
}
---

I found out, that the commands which should create the $file before are out-commented:
#JKF system  "$bitDCmd > $origFile ";
#JKF system  "$bitDCmd > $destFile ";

I removed the '#JKF ' and everything is working fine...

My configuration:
RedHat Enterprise Linux ES 3
perl-5.8.0-88.7
MailScanner-4.35.9-1

My apologies to the list, if i did stupid things - i am a perl beginner...

Chris



Koen Teugels wrote:
> I don't think that the wapper scripts update bitdefender.
> Because the date of the virusdatabase doesn't change. Ans when I do a
> manual update I can see some changes. Any idee?
> thanks Koen
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).




More information about the MailScanner mailing list