run-antivir wraps invocations of antivir, mapping antivir's exit codes to values recognized by qscanq and invoking antivir with the appropriate arguments. The only reason run-antivir exists is to convert antivir's silly exit codes to something sensible.

run-antivir takes no command-line arguments and has no settings. It runs the command given at compile time in the file conf-antivir-cmd. That command should invoke antivir to scan everything in the current working directory, generating no output.

Return values are mapped in the following way:

  1. If antivir returns 0, run-antivir returns 0.

  2. If antivir returns 1, 2 or 101 (code indicating that a virus was detected), run-antivir returns 1.

  3. If antivir returns any other non-zero status, run-antivir returns 2, which will be interpreted by qscanq as a temporary failure.

 

Top


Len Budney
lbudney@pobox.com
Copyright © 1998 - 2004
Page generated: 20:40:25 21-Dec-2004