samba-vscan/antivir vscan-antivir.c, 1.1.2.8, 1.1.2.9

Rainer Link <[email protected]> Sat, 19 May 2007 22:29:34 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/samba-vscan/antivir
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv673/antivir

Modified Files:
      Tag: VSCAN_0_3
	vscan-antivir.c 
Log Message:
next round of fixes for Samba 3.0.25 (or later)


Index: vscan-antivir.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/antivir/Attic/vscan-antivir.c,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -u -d -r1.1.2.8 -r1.1.2.9
--- vscan-antivir.c	19 May 2007 18:35:20 -0000	1.1.2.8
+++ vscan-antivir.c	19 May 2007 22:29:32 -0000	1.1.2.9
@@ -269,11 +269,11 @@
 	int rc;
 
 	/* Assemble complete file path */
-	#if (SMB_VFS_INTERFACE_VERSION >= 21)
-		pstrcpy(filepath, handle->conn->connectpath);
-	#else
-		pstrcpy(filepath, conn->connectpath);
-	#endif
+#if (SMB_VFS_INTERFACE_VERSION >= 21)
+	pstrcpy(filepath, handle->conn->connectpath);
+#else
+	pstrcpy(filepath, conn->connectpath);
+#endif
 	pstrcat(filepath, "/");
 	pstrcat(filepath, fname);
 
@@ -281,7 +281,7 @@
 	if ( !vscan_config.common.scan_on_open ) {
 		DEBUG(3, ("samba-vscan - open: File '%s' not scanned as scan_on_open is not set\n", fname));
 #if (SMB_VFS_INTERFACE_VERSION >= 21)
-	return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
+		return SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
 #elif (SMB_VFS_INTERFACE_VERSION >= 6)
 		return SMB_VFS_NEXT_OPEN(handle, conn, fname, flags, mode);
 #else


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/