Re: [trend-update.pl v1.02] Non fatal error while updating signatures
Alain Fauconnet <[email protected]> Wed, 8 Dec 2004 09:14:16 +0700
| Newsgroups | gmane.comp.security.virus.vtools |
|---|---|
| Message-ID | <[email protected]> |
Marco,
On Wed, Dec 08, 2004 at 12:48:26AM +0100, Marco Borrini wrote:
>
> Today I've finished the configuration of Qmail + Amavis + Trophie + TM
> VirusWall + ClamAV and I'm testing trend-update.pl to manage automatic
> update of virus signatures.
>
> The process seems to work well but the cron output always show me the
> following error when an update is available:
>
>
> ========
> Trend Micro A-V Pattern/Engine Update v1.02 starting at Tue Dec 7
> 18:30:01 2004
> Checking existing VPN/CPR pattern number/version
> Reading /opt/trend/ISBASE/IScan.BASE/update/numver.dat
> Found VPN major = 2, number = 285, version = 00
> Found CPR major = 2, number = 286, version = 03
> Trophie reports engine version = 7.000-1011
> Current VPN: major = 2, number = 285, version = 00
> Current CPR: major = 2, number = 286, version = 03
> Current ENG: version = 7.000-1011
> Checking VPN whatsnew.txt
> Unchanged
> Checking VPN pattern number/version
> Found pattern major = 2, number = 285, version = 00 in
> /opt/trend/ISBASE/IScan.BASE/update/vpn_whatsnew.txt
> VPN not newer than currently used: no VPN download
> Checking CPR whatsnew.txt
> Checking CPR pattern number/version
> Found pattern major = 2, number = 286, version = 04 in
> /opt/trend/ISBASE/IScan.BASE/update/cpr_whatsnew.txt
> Downloading CPR lpt286.zip
> Extracting /opt/trend/ISBASE/IScan.BASE/update/lpt286.zip to
> /opt/trend/ISBASE/IScan.BASE ...
> ... lpt$vpn.286
> CPR updated: major = 2, number = 286, version = 04
> Updating links in /etc/iscan ...
> ... lpt$vpn.286
> Updating links in /opt/trend/ISBASE/IScan.BASE ...
> ===>
> ===> ERROR: can't create link /opt/trend/ISBASE/IScan.BASE/lpt$vpn.286
> -> /opt/trend/ISBASE/IScan.BASE/lpt$vpn.286
The script is trying to make a link from a file to itself!
Which is obviously wrong. That's because you've set:
$trenddir = "/opt/trend/ISBASE/IScan.BASE";
but it's also in:
@linkdirs = ("/etc/iscan", "/opt/trend/ISBASE/IScan.BASE");
$trenddir is the 'master' directory where actual files will be
downloaded to. The directories in @linkdirs will have soft links
pointing the the files in $trenddir maintained by the script.
OK, the comment describing @linkdirs isn't quite clear.
I'll improve it in a new version (suggestions for a better wording
are welcome).
Summary: change @linkdirs to:
@linkdirs = ("/etc/iscan");
(rest deleted)
Greets,
_Alain_