]> git.pld-linux.org Git - packages/avscan.git/blobdiff - avscan-clamav.patch
- use options equivalent to old CL_SCAN_STDOPT; release 4
[packages/avscan.git] / avscan-clamav.patch
index b7d46cfb627c2c01e50f5fa0be0d4c359ef95330..9f91efc26c82607075c21441dac257327b6ee05a 100644 (file)
@@ -4,9 +4,9 @@
        guint options;
        gchar *s;
        const gchar *virus_name = NULL;
-+#ifdef CL_SCAN_GENERAL_ALLMATCHES
-+      struct cl_scan_options scan_options = {CL_SCAN_GENERAL_ALLMATCHES,
-+                                             0x3FF, // where is the convenience alias for all?
++#ifdef CL_SCAN_GENERAL_HEURISTICS
++      struct cl_scan_options scan_options = {CL_SCAN_GENERAL_HEURISTICS,
++                                             ~0,
 +                                             0,
 +                                             0,
 +                                             0};
        /* Scan this file */
        status = (gint)cl_scandesc(
                fd,
-+#ifdef CL_SCAN_GENERAL_ALLMATCHES
++#ifdef CL_SCAN_GENERAL_HEURISTICS
 +              path,
 +#endif
                &virus_name,
                &scanned_blocks,
                d->engine,
-+#ifdef CL_SCAN_GENERAL_ALLMATCHES
++#ifdef CL_SCAN_GENERAL_HEURISTICS
 +              &scan_options
 +#else
                (unsigned int)options
This page took 0.130722 seconds and 4 git commands to generate.