René Berber wrote:
Rick Macdougall wrote:
I noticed today that clamdscan exits with an exit code of 2 instead of 0 when it encounters a password protected zip file, even with ArchiveBlockEncrypted commented out.
Is this the recommended exit code, or have I encountered a bug ?
If this is the recommended exit code, where might I find a list of the exit codes (I've looked through the wiki, pdf documentation and some, not all, of the course code).
man clamdscan: [snip] RETURN CODES 0 : No virus found.
1 : Virus(es) found.
2 : An error occured.
Thanks,
One place I didn't look that I should have but still, is a password protected zip file considered an error ? I can't really allow scans that return a 2 to pass through (well I can but I don't think it's a good idea).
Regards,
Rick _______________________________________________ http://lurker.clamav.net/list/clamav-users.html