]> git.pld-linux.org Git - packages/avscan.git/blob - avscan-clamav.patch
b7d46cfb627c2c01e50f5fa0be0d4c359ef95330
[packages/avscan.git] / avscan-clamav.patch
1 --- avscan-5.1.1-openssl/avscan/avs_avengine_scan.c.orig        2009-04-07 02:00:00.000000000 +0200
2 +++ avscan-5.1.1-openssl/avscan/avs_avengine_scan.c     2018-12-10 20:57:11.242064885 +0100
3 @@ -750,6 +750,13 @@
4         guint options;
5         gchar *s;
6         const gchar *virus_name = NULL;
7 +#ifdef CL_SCAN_GENERAL_ALLMATCHES
8 +       struct cl_scan_options scan_options = {CL_SCAN_GENERAL_ALLMATCHES,
9 +                                              0x3FF, // where is the convenience alias for all?
10 +                                              0,
11 +                                              0,
12 +                                              0};
13 +#endif
14  
15         /* Interrupted? */
16         if(*stop_count > 0)
17 @@ -833,10 +841,17 @@
18         /* Scan this file */
19         status = (gint)cl_scandesc(
20                 fd,
21 +#ifdef CL_SCAN_GENERAL_ALLMATCHES
22 +               path,
23 +#endif
24                 &virus_name,
25                 &scanned_blocks,
26                 d->engine,
27 +#ifdef CL_SCAN_GENERAL_ALLMATCHES
28 +               &scan_options
29 +#else
30                 (unsigned int)options
31 +#endif
32         );
33  
34         /* Close the file */
This page took 0.041505 seconds and 2 git commands to generate.