freshclam reports wrong exit status after clamav update
This document (7023378) is provided subject to the disclaimer at the end of this document.
clamclient:~ # freshclam -v
Current working dir is /var/lib/clamav
Max retries == 3
ClamAV update process started at Wed Sep 26 14:46:50 2018
Using IPv6 aware code
Software version from DNS: 0.100.1
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.100.0 Recommended version: 0.100.1
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
main.cvd version from DNS: 58
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd version from DNS: 24983
daily.cld is up to date (version: 24983, sigs: 2100133, f-level: 63, builder: raynman)
bytecode.cvd version from DNS: 327
bytecode.cld is up to date (version: 327, sigs: 91, f-level: 63, builder: neo)
clamclient:~/PTF-2018-Sep-07-09:38:00 # echo $?
According to man (1) freshclam, the exit status should be zero if the database was successfully refreshed or up-to-date.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023378
- Creation Date: 26-Sep-2018
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com