Re: [Clamav-users] Database correctly reloaded (0 signatures…

Top Page
Attachments:
Message as email
+ (text/plain)
+ signature.asc (application/pgp-signature)
+ (text/plain)
Delete this message
Reply to this message
Author: James Kosin
Date:  
To: ClamAV users ML
Subject: Re: [Clamav-users] Database correctly reloaded (0 signatures)
Oscar Usifer wrote:
> Please see clamav-0.93.3/libclamav/readdb.c:460 sigs++;
>
>>From static int cli_loaddb() :
>
> 475 if(signo)
> 476 *signo += sigs;
>
> s/b
>
> 475 if (sigs == 0)
> 476 return CL_EMALFDB;
> 477
> 478 if(signo)
> 479 *signo += sigs;
>
>

Oscar,

I don't know if this is really necessary. A malformed DB file should be
caught by other checks above this. One could potentially have a DB file
with no signatures... could be a possibility. ie: main.cld is updated
and daily.cld gets signatures cleared but no update yet.

The user was experiencing a total signature count of zero. So a check
after loading all db files for a total count that is above 0 may be in
order.

James

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml