Don't log errors if execute unzip returned error 11
This commit is contained in:
parent
14bd2bf295
commit
58a64114d4
@ -14,6 +14,7 @@ v0.95.1 07-Jan-2008 - 17-Feb-2008.
|
|||||||
Added file virscan function.
|
Added file virscan function.
|
||||||
Added stream scanning for ClamAV, scanning is 10 times faster
|
Added stream scanning for ClamAV, scanning is 10 times faster
|
||||||
compared to the commandline scanner.
|
compared to the commandline scanner.
|
||||||
|
Don't log errors if execute unzip returned error 11.
|
||||||
|
|
||||||
mbtask:
|
mbtask:
|
||||||
Added last changes for MIB counters.
|
Added last changes for MIB counters.
|
||||||
|
@ -118,7 +118,9 @@ int _execute(char **args, char *in, char *out, char *err)
|
|||||||
if (WIFEXITED(status)) {
|
if (WIFEXITED(status)) {
|
||||||
rc = WEXITSTATUS(status);
|
rc = WEXITSTATUS(status);
|
||||||
if (rc) {
|
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);
|
return (rc + MBERR_EXTERNAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user