Browse code

update freshclam to match exit codes defined in freshclam.1

Russ Kubik authored on 2018/09/12 12:54:35
Showing 2 changed files
... ...
@@ -15,6 +15,7 @@ an assortment of minor fixes:
15 15
   eliminates the need to generate documents (the PDF, HTML).  Find the user
16 16
   manual under docs/UserManual[.md].
17 17
 - Backwards compatibility improvements for detecting the OpenSSL dependency.
18
+- freshclam updated to match exit codes defined in the freshclam.1 man page.
18 19
 
19 20
 ## 0.100.1
20 21
 
... ...
@@ -723,7 +723,7 @@ main (int argc, char **argv)
723 723
 
724 724
     cl_cleanup_crypto();
725 725
 
726
-    return (ret);
726
+    return ret > 1 ? ret : 0;
727 727
 }
728 728
 
729 729
 int is_valid_hostid(void)