[Samba] Samba 3.2.5 and vscan-clamav.so

Thomas Wild Thomas.Wild at ids-gmbh.de
Fri Jan 2 20:32:49 GMT 2009


Hi

I made this patch for samba-vscan-0.3.6b because it a very old module.

This solves the old samba init_module to new init_samba_module and the
vanished pstring in samba. For me it works fine!

- Thomas

===================================================================
--- include/vscan-global.h.orig 2004-10-05 21:47:54.000000000 +0200
+++ include/vscan-global.h      2008-12-09 15:55:04.000000000 +0100
@@ -69,6 +69,17 @@
  #endif
 #endif

+/* Patched by T. Wild, 9.12.2008, because pstrcpy removed by samba.org */

+#define PSTRING_LEN 1024
+typedef char pstring[PSTRING_LEN];
+#define pstrcpy(d,s) safe_strcpy((d),(s),sizeof(pstring)-1)
+#define pstrcat(d,s) safe_strcat((d),(s),sizeof(pstring)-1)
+
+/* Furthermore init_module changed to init_samba_module */
+
+#define init_module(void) init_samba_module(void)
+
+/* end of patch by T. Wild */

 #endif /* __VSCAN_GLOBAL_H */
===================================================================


Am 2008-12-30 17:59, Andrzej schrieb:


Hello

Recently I migrated from samba 3.0.24 to samba 3.2.5 on Debian etch
amd64. In  old system I have working samba-vscan used with ClamAV 0.91.
Now I have ClamAV 0.94.2. I compiled vscan-clamav successfully, but when
I try to connect to the share, it fails and I get some strange messages
in the samba logs: "Error trying to resolve symbol 'init_samba_module'
in /usr/samba/lib/vfs/vscan-clamav.so". Actually there is no such symbol
inside compiled binary. Other compiled VFS modules have that symbol in
binary. ClamAV socket is configured correctly and have proper rights.
How to get working vscan-clamav with samba 3.2.5 ??

Next I compiled other antivirus VFS module - scannedonly from
scannedonly-0.11_git.patch.gz. In compiled binary also I haven't found
'init_samba_module'.

Any ideas?

-- 

mfg/regards Thomas Wild
-----------------------------------------------------------------
Thomas Wild      www.ids-gmbh.de     Thomas.Wild <at> ids-gmbh.de



More information about the samba mailing list