Hi there,

On Wed, 12 Aug 2020, Marian Galbavy via clamav-users wrote:

... what does error 3 mean. ...

It isn't very informative I'm afraid, as Micah said in his reply.
If you want to look at the code it's defined in an 'enum' in

clamonacc/inotif/inotif.c

like this:

/* return codes */
typedef enum cl_error_t {
    /* libclamav specific */
    CL_CLEAN   = 0,
    CL_SUCCESS = 0,
    CL_VIRUS,
    CL_ENULLARG,
    CL_EARG,
    ...

The integer values in the enum start at 0 and increment by one for
each new symbol, so CL_VIRUS=1, CL_ENULLARG=2, CL_EARG=3, etc. etc.

These values are constants.  In the code, the value which is returned
by a function can use a symbol instead of an integer, which is intended
to make it all clearer.  Unfortunately as you will see if you look in

clamonacc/inotif/inotif.c

the CL_EARG symbolic value is returned for many different reasons so
it more or less means "something went wrong" in setting up the things
to be watched.  It wouldn't surprise me if improvements in the error
reporting were on the way, but if you can test a patch you could also
do something about the error reporting in a local copy of the code to
try to narrow it down.  It might even help the developers with their
fault-finding if you could report more detail.

But I'm sure Micah will let you know when there's a patch to test.

--

73,
Ged.

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to