X-Git-Url: http://git.pld-linux.org/?p=packages%2Favscan.git;a=blobdiff_plain;f=avscan-clamav.patch;fp=avscan-clamav.patch;h=9f91efc26c82607075c21441dac257327b6ee05a;hp=b7d46cfb627c2c01e50f5fa0be0d4c359ef95330;hb=882fa69a7a6327c7ca6414f0869c0f48e9117998;hpb=4d29f9302091893db65d78abe9b62e0c4ebda71c diff --git a/avscan-clamav.patch b/avscan-clamav.patch index b7d46cf..9f91efc 100644 --- a/avscan-clamav.patch +++ b/avscan-clamav.patch @@ -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}; @@ -18,13 +18,13 @@ /* 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