From c604c5bde796f5b7a4061adc65be6a460e07b74a Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mar 15 2019 03:35:39 +0000 Subject: Update to 3.0.9. clamav 0.101 support is supposed to be there but still seems to be broken and needs a one-line fix now. So that patch can't quite go away yet. --- diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec index 3180f15..d359f54 100644 --- a/cyrus-imapd.spec +++ b/cyrus-imapd.spec @@ -8,8 +8,8 @@ %bcond_without cassandane Name: cyrus-imapd -Version: 3.0.8 -Release: 10%{?dist} +Version: 3.0.9 +Release: 1%{?dist} %define ssl_pem_file /etc/pki/%name/%name.pem @@ -693,6 +693,9 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v %changelog +* Thu Mar 14 2019 Jason L Tibbitts III - 3.0.9-1 +- Update to 3.0.9. + * Mon Feb 11 2019 Jason L Tibbitts III - 3.0.8-10 - Add pam configuration file for httpd auth. Thanks to Jeroen van Meeuwen. diff --git a/patch-clamav101 b/patch-clamav101 index 48ede62..4eb9a94 100644 --- a/patch-clamav101 +++ b/patch-clamav101 @@ -1,25 +1,13 @@ diff --git a/imap/cyr_virusscan.c b/imap/cyr_virusscan.c -index 863a858..b6c8980 100644 +index 8f57885..26a2773 100644 --- a/imap/cyr_virusscan.c +++ b/imap/cyr_virusscan.c -@@ -192,9 +192,19 @@ int clamav_scanfile(void *state, const char *fname, - struct clamav_state *st = (struct clamav_state *) state; +@@ -193,7 +193,7 @@ int clamav_scanfile(void *state, const char *fname, int r; -- /* scan file */ -+#ifndef CL_SCAN_ARCHIVE /* clamav >= 0.101 */ -+ struct cl_scan_options options; -+ memset(&options, 0, sizeof(struct cl_scan_options)); -+ options.parse |= ~0; /* enable all parsers */ -+ options.general |= CL_SCAN_GENERAL_HEURISTICS; /* enable heuristic alert options */ -+ -+ r = cl_scanfile(fname, virname, NULL, st->av_engine, -+ &options); -+ -+#else + /* scan file */ +-#if LIBCLAMAV_MAJORVER < 9 ++#ifdef CL_SCAN_ARCHIVE r = cl_scanfile(fname, virname, NULL, st->av_engine, CL_SCAN_STDOPT); -+#endif - - switch (r) { - case CL_CLEAN: + #else diff --git a/sources b/sources index db25243..0b92819 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (cassandane-testdata-20170523.tar.gz) = 705f5af6a31fe3b8d6e8027bbddbedb2f64d65997f8a06620ec07fcd30a95d98ac3f3fbef7af5080684ee21be1c5b8bcad2374b2749f0571099e780355a04420 SHA512 (cassandane-c8040fd.tar.gz) = 58c0778be68628984f231aa1bb20abcb45a390f3660135e24bcdda163bfec2d7f5643aeb8d3f9deb03796f5b9b29a7e39515ffe375c1a2805c5ff3ec0f3c7d43 -SHA512 (cyrus-imapd-3.0.8.tar.gz) = f4aa9877e62479439bee2ca29f452bd7e9daa091c19bf3567aa7f493f5163c98b44086b749c70981402212ff90e19d9125b508cfcc077088f8c705e533812960 +SHA512 (cyrus-imapd-3.0.9.tar.gz) = d1a65e957ad3bbbd70e4c8c699e226c17911c6f5815839694136b967a7067acaf4261c8aaad223ffb1e41d76ef78e9e7279a2805048de9b05939044ce17cb738