Bug 11812 - fix returncode on custom only updates
fix returncode on custom only updates
Status: RESOLVED FIXED
Product: ClamAV
Classification: ClamAV
Component: freshclam
stable
x86_64 GNU/Linux
: P3 normal
: 0.99.4
Assigned To: ClamAV team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-05 01:46 EDT by A. Schulze
Modified: 2019-06-06 21:29 EDT (History)
2 users (show)

See Also:
QA Contact:


Attachments
patch to returncode on custom only updates (734 bytes, patch)
2017-04-05 01:46 EDT, A. Schulze
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description A. Schulze 2017-04-05 01:46:45 EDT
Created attachment 7242 [details]
patch to returncode on custom only updates

man freshclam say "RETURN CODES 0 = Database is up-to-date or successfully updated"

this is not true if only custom dbs are updated. RC is mostly 1 in that case.
see http://lists.clamav.net/pipermail/clamav-users/2017-February/004118.html

attached patch fixes the issue.

Andreas
Comment 1 Micah Snyder 2019-06-06 21:29:21 EDT
I believe this is resolved as of clamav 0.101.0, where freshclam returns 0 for both "updated" and "up-to-date" success conditions.