summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorChristian Andreetta <satya@gentoo.org>2004-11-08 15:24:32 +0000
committerChristian Andreetta <satya@gentoo.org>2004-11-08 15:24:32 +0000
commit8a20310fd028aeee6ae4df00ccf699e3179c6e7f (patch)
treea11f0fb70a75f7a63dbb1bffc22fac7cc5f65c16 /net-fs
parentStable on ppc64; bug #70240 (diff)
downloadhistorical-8a20310fd028aeee6ae4df00ccf699e3179c6e7f.tar.gz
historical-8a20310fd028aeee6ae4df00ccf699e3179c6e7f.tar.bz2
historical-8a20310fd028aeee6ae4df00ccf699e3179c6e7f.zip
libclamav: (oav) don't use clamav daemon, just load libraries when needed
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/samba/files/vscan-0.3.5-libclamav.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-fs/samba/files/vscan-0.3.5-libclamav.patch b/net-fs/samba/files/vscan-0.3.5-libclamav.patch
new file mode 100644
index 000000000000..b026dcad2938
--- /dev/null
+++ b/net-fs/samba/files/vscan-0.3.5-libclamav.patch
@@ -0,0 +1,15 @@
+diff -uNr samba-vscan-0.3.5.orig/clamav/vscan-clamav.c samba-vscan-0.3.5/clamav/vscan-clamav.c
+--- samba-vscan-0.3.5.orig/clamav/vscan-clamav.c 2004-03-02 08:56:06.000000000 +1100
++++ samba-vscan-0.3.5/clamav/vscan-clamav.c 2004-10-19 12:51:06.290962012 +1000
+@@ -567,7 +567,11 @@
+ }
+
+
++#ifdef LIBCLAMAV
++ sockfd = 1;
++#else
+ sockfd = vscan_clamav_init();
++#endif /* LIBCLAMAV */
+ if ( sockfd >= 0 ) {
+ safe_strcpy(client_ip, fsp->conn->client_address, CLIENT_IP_SIZE -1);
+ /* scan only file, do nothing */