diff --git a/ChangeLog b/ChangeLog index 03961fad..30d57244 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ v0.95.1 07-Jan-2008 - 17-Feb-2008. Added file virscan function. Added stream scanning for ClamAV, scanning is 10 times faster compared to the commandline scanner. + Don't log errors if execute unzip returned error 11. mbtask: Added last changes for MIB counters. diff --git a/lib/execute.c b/lib/execute.c index 60524324..dd03527c 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -118,7 +118,9 @@ int _execute(char **args, char *in, char *out, char *err) if (WIFEXITED(status)) { rc = WEXITSTATUS(status); if (rc) { - WriteError("Execute: returned error %d", rc); + if ((strstr(args[0], (char *)"unzip") == NULL) || (rc != 11)) { + WriteError("Execute: returned error %d", rc); + } return (rc + MBERR_EXTERNAL); } }