> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]

> > OS> +++ Started at Wed Apr 11 14:03:38 2007
> > OS> clamd daemon 0.90.1 (OS: linux-gnu, ARCH: i386, CPU: i686)
> > OS> Log file size limited to 2097152 bytes.
> > OS> Reading databases from /var/lib/clamav
> > OS> ERROR: Broken or not a CVD file
>
> I had this on 4 different servers that I support.
>
> /var/lib/clamav contained a file with 0 bytes called:
>
> *.cvd
>
> That is correct, the asterisk (*) was actually in the filename.
>
> I deleted this file and re-ran freshclam and restarted clamd.
>
> All is fine now.

I found this file too when I was investigating the problem I talk about in
my post "Clamav suddenly died on several boxes". I found the the '*.cvd'
file is created by a daily cron script, /etc/cron.daily/freshclam, which
issues the command
/bin/touch -a /var/lib/clamav/*.cvd

This command creates the file *.cvd (literally) when there's no .cvd file in
/var/lib/clamav .

It's clear the the original intention of the command was to protect cvd
files from being deleted by the subsequent command
/usr/sbin/tmpwatch 72 /var/lib/clamav

but since now we're switching to .inc directories instead of .cvd files,
this command is not correct any more.
I think that the touch command should be substituted by something like
(maybe can done in a more compact):
find /var/lib/clamav/ -type f -name '*.cvd' -exec touch -a '{}' ';'
find /var/lib/clamav/ -type d -name '*.inc' | while read dir; do find
$dir -exec touch -a '{}' ';' ; done

But all this said, this file was not responsible for the problems I had,
which I describe in my other post.

HTH
Luigi

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to