]> git.pld-linux.org Git - packages/apache-mod_clamav.git/blame - apache-mod_clamav-clamav.patch
- added clamav patch (fix build with clamav 0.101); release 3
[packages/apache-mod_clamav.git] / apache-mod_clamav-clamav.patch
CommitLineData
971c2e7b
JB
1--- mod_clamav-0.23/filter.c.orig 2009-04-11 01:32:37.000000000 +0200
2+++ mod_clamav-0.23/filter.c 2018-12-11 21:11:10.654402097 +0100
3@@ -142,8 +142,16 @@
4 switch (rec->mode) {
5 case MOD_CLAMAV_LOCAL:
6 /* virus scan using local clamav library */
7+#ifdef CL_SCAN_ARCHIVE
8 return cl_scanfile(ctx->filename, virname, (unsigned long *)len,
9 rec->common->local->engine, CL_SCAN_ARCHIVE);
10+#else
11+ {
12+ struct cl_scan_options scanoptions = {0, CL_SCAN_PARSE_ARCHIVE, 0, 0, 0};
13+ return cl_scanfile(ctx->filename, virname, (unsigned long *)len,
14+ rec->common->local->engine, &scanoptions);
15+ }
16+#endif
17 break;
18 case MOD_CLAMAV_DAEMON:
19 /* set reasonable defaults for virname */
This page took 0.048037 seconds and 4 git commands to generate.