On 07/12/2006 10:01, Tomasz Kojm wrote:
On Wed, 6 Dec 2006 21:27:27 -0600
Chris <[EMAIL PROTECTED]> wrote:
AhHa, this looks suspicious:
Wed Dec 6 08:21:28 2006 -> SelfCheck: Database modification detected.
Forcing reload.
Wed Dec 6 08:21:28 2006 -> Reading databases from /var/lib/clamav
Wed Dec 6 08:21:28 2006 -> Accepted connection on port 2003, fd 12
Wed Dec 6 08:21:31 2006 -> ERROR: reload db failed: Malformed database
[...]
This appears to have been the culpert
gunzip: /var/lib/clamav/scam.ndb.gz: unexpected end of file
You should be more careful with what you're downloading into the database
directory. For the official database freshclam makes a number of tests to
prevent installing broken files. For 3rd party databases I'd suggest calling
'clamscan -d file.ndb' before installing file.ndb in the database dir and/or
asking the creator to provide you with online checksum for the file.
That's a good tip! I never thought of that one. For gzipped files, you
can also check the result of un-gzipping them. I use something like:
if gzip -dc $F.gz > $F; then
# passed un-gzipping - do further stuff
--
-=( Ian Abbott @ MEV Ltd. E-mail: <[EMAIL PROTECTED]> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html