cyrus-imapd/patch-clamav101
Jason Tibbitts c604c5bde7 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.
2019-03-14 22:35:39 -05:00

14 lines
403 B
Plaintext

diff --git a/imap/cyr_virusscan.c b/imap/cyr_virusscan.c
index 8f57885..26a2773 100644
--- a/imap/cyr_virusscan.c
+++ b/imap/cyr_virusscan.c
@@ -193,7 +193,7 @@ int clamav_scanfile(void *state, const char *fname,
int r;
/* scan file */
-#if LIBCLAMAV_MAJORVER < 9
+#ifdef CL_SCAN_ARCHIVE
r = cl_scanfile(fname, virname, NULL, st->av_engine,
CL_SCAN_STDOPT);
#else