[Avcheck] just a warning: corrupted daily.avc in AVP database

Michael Tokarev mjt@tls.msk.ru
Wed, 05 Dec 2001 19:47:16 +0300


Piotr Klaban wrote:
> 
> Hi,
> 
> There is corrupted virus database file daily.avc in
> ftp://ftp.avp.ru/updates/:
> -rw-r-----   1 502      ftp         2920   gru  4 22:04   daily.avc
> 
> At least my kavdaemon says it is corrupted. After deleting it
> everything works fine.


As I already pointed out (several times), it is not safe to
update files in-place.  The *only* safe update is:

 mkdir bases.new
 cp -p bases/* bases.new
 cd bases.new
 fetch_new_files || exit
 ../kavdaemon -something ../testvirus
 [do something with results etc]
 cd ..
 rm -rf bases.old
 mv bases bases.old
 mv bases.new bases
 /etc/init.d/avpd reload

(the same is true for ANY virusscanner).  This is the ONLY safe
method (and no, Ralf, here we see an example where your variant
breaks).  Well, a script should be written based on the above
template... ;)

Regards,
 Michael.