antivir-autoupdate broken ? (bug found - Solved)

Julian Field mailscanner at ecs.soton.ac.uk
Tue Oct 19 09:07:12 IST 2004


<x-flowed>
This is already correct in my copy of the code. Maybe you have an old
version of this file?
According to the ChangeLog, what is probably this bug was fixed in version
4.12.

At 01:56 19/10/2004, you wrote:
>Hello people sorry for my bad english.
>
>you must change the first code of antivir-autoupdate to this.
>
>#!/usr/bin/perl
>
>#
># AntiVir updater. Original code by Julian Field. Timeout code by
># Alessandro Bianchi.
>#
>
>use Sys::Syslog;
>
>$PackageDir = shift || "/usr/lib/AntiVir";
>
>$AntiVirUpdateCommand = "$PackageDir/antivir --update";
>
>$AntiVirCommand = "$PackageDir/antivir";
>
>$LockFile = "/tmp/AntiVirBusy.lock";
>
>$LOCK_SH = 1;
>$LOCK_EX = 2;
>$LOCK_NB = 4;
>$LOCK_UN = 8;
>
>eval { Sys::Syslog::setlogsock('unix'); }; # This may fail!
>Sys::Syslog::openlog("AntiVir-autoupdate", 'pid, nowait', 'mail');
>
>BailOut("Installation dir \"$PackageDir\" does not exist!")
>   unless $PackageDir ne "" && -d $PackageDir;
>
>if (-x $AntiVirCommand) {
>
>
>
>This line: if (-x $AntiVirCommand) {
>
>is the modify of: if (-x $AntiVirUpdateCommand) {
>
>
>  The solutions is the string: $AntiVirUpdateCommand is not a exec file  :)
>$PackageDir/antivir --update
>
>The solution can be create a new $AntiVirCommand = "$PackageDir/antivir";
>for example and use this option for the if ( -x $AntiVirCommand )
>
>simple perl :-)
>
>anybody can contact with the developer for change the code in next release?

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ 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).
</x-flowed>



More information about the MailScanner mailing list