samba-vscan/global vscan-message.c, 1.10.2.2, 1.10.2.3
Rainer Link <[email protected]> Sat, 15 Sep 2007 14:35:45 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/global
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10605/global
Modified Files:
Tag: VSCAN_0_3
vscan-message.c
Log Message:
fix to make it compile with Samba 3.0.25c or better, provided by
Sven Strickroth.
Unfortunately this breaks compilation with 3.0.25[a|b] (and probably
some older versions as well), to compile it with older Samba releases
please change a one-liner
Index: vscan-message.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/global/vscan-message.c,v
retrieving revision 1.10.2.2
retrieving revision 1.10.2.3
diff -u -d -r1.10.2.2 -r1.10.2.3
--- vscan-message.c 19 May 2007 17:59:42 -0000 1.10.2.2
+++ vscan-message.c 15 Sep 2007 14:35:43 -0000 1.10.2.3
@@ -80,7 +80,10 @@
make_nmb_name(&called , remote_machine, name_type);
#if (SMB_VFS_INTERFACE_VERSION >= 21)
- if (!(cli=cli_initialise()) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, remote_machine, &ip)) {
+/* OK, we're breaking compatiblity with 3.0.25[a|b] here... */
+ if (!(cli=cli_initialise()) || (cli_set_port(cli, port) == 0) || !NT_STATUS_IS_OK(cli_connect(cli, remote_machine, &ip))) {
+/* If you really need to compile it for 3.0.25[a|b], please comment the line above and uncomment the line below */
+/* if (!(cli=cli_initialise()) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, remote_machine, &ip)) { */
#else
if (!(cli=cli_initialise(NULL)) || (cli_set_port(cli, port) == 0) || !cli_connect(cli, remote_machine, &ip)) {
#endif
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/