[packages/avscan] - use options equivalent to old CL_SCAN_STDOPT; release 4

qboosh qboosh at pld-linux.org
Tue Dec 11 19:18:25 CET 2018


commit 882fa69a7a6327c7ca6414f0869c0f48e9117998
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 11 19:22:54 2018 +0100

    - use options equivalent to old CL_SCAN_STDOPT; release 4

 avscan-clamav.patch | 10 +++++-----
 avscan.spec         |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/avscan.spec b/avscan.spec
index a780502..1814e0f 100644
--- a/avscan.spec
+++ b/avscan.spec
@@ -2,7 +2,7 @@ Summary:	AntiVirus Scanner
 Summary(pl.UTF-8):	Skaner antywirusowy
 Name:		avscan
 Version:	5.1.1
-Release:	3
+Release:	4
 License:	GPL v2 with OpenSSL exception
 Group:		X11/Applications
 Source0:	http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}-openssl.tar.bz2
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/avscan.git/commitdiff/882fa69a7a6327c7ca6414f0869c0f48e9117998



More information about the pld-cvs-commit mailing list