File clamav-freshclam-exit.patch of Package clamav.8970

--- freshclam/freshclam.c.orig
+++ freshclam/freshclam.c
@@ -714,6 +714,12 @@ main (int argc, char **argv)
             execute ("OnErrorExecute", opt->strarg, opts);
     }
 
+    if (ret == FC_UPTODATE)
+    {
+	/* Restore exit code compatibility with ClamAV < 0.100.0 */
+	ret = 0;
+    }
+
     if (pidfile)
     {
         unlink (pidfile);
openSUSE Build Service is sponsored by