On Fri, Oct 20, 2006, Thomas Arendsen Hein wrote: > When I change the update interval for clamav in etc/rc.conf from the > default "daily" to e.g. "hourly", mails get sent to root for each > freshclam call that doesn't find new updates, because the database > is up to date. > > The problem is that freshclam yields an exit code 1 in this case. > Only exit codes of 40 and above are errors. > > For the daily updates this is no problem, because logrotate happens > after freshclam in etc/rc.d/rc.clamav, so the exit code doesn't > matter. > > My quick fix is to call 'true' after each freshclam call, but of > course real error handling might be nice. > > (Last tested with clamav-0.88.5-2.20061018, but previous versions > show this behaviour, too)
Good catch. You're right, we should fail only if freshclam(8) fails with higher errors codes. This is now fixed clamav-0.88.5-2.20061020 and higher. See http://cvs.openpkg.org/chngview?cn=31041 for details. Thanks for your contribution. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org