[clamav-users] Freshclam 0.100.0 returning 1 on up-to-date
Andreas Schulze
andreas.schulze at datev.de
Tue Apr 10 12:36:48 UTC 2018
Am 10.04.2018 um 10:32 schrieb Pertti Karppinen:
> Freshclam seems to be returning 1 on up-to-date situation, but man page
> says it should return 0:
> 0 : Database is up-to-date or successfully updated.
>
I think, I had the similar (same?) problem some times ago and fixed it with this patch:
Description: freshclam should return 0 if only custom databases
are updated and all are up to date
Author: A. Schulze
URL: https://bugzilla.clamav.net/show_bug.cgi?id=11812
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: clamav-0.100.0~beta/freshclam/manager.c
===================================================================
--- clamav-0.100.0~beta.orig/freshclam/manager.c
+++ clamav-0.100.0~beta/freshclam/manager.c
@@ -2612,6 +2612,7 @@ downloadmanager (const struct optstruct
updatecustomdb (opt->strarg, &signo, opts, localip,
logerr)) == 0)
updated = 1;
+ if (custret == 1) { /* not updated but up to date */ custret = 0; }
opt = opt->nextarg;
}
}
--
A. Schulze
DATEV eG
More information about the clamav-users
mailing list