samba-vscan/f-secure vscan-fsav.c,1.1.2.3,1.1.2.4

[email protected]
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/samba-vscan/f-secure
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26248

Modified Files:
      Tag: VSCAN_0_3
	vscan-fsav.c 
Log Message:
some updates to get the module working (hopefully)


Index: vscan-fsav.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/f-secure/Attic/vscan-fsav.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- vscan-fsav.c	8 Jan 2004 18:41:05 -0000	1.1.2.3
+++ vscan-fsav.c	10 Mar 2004 15:59:42 -0000	1.1.2.4
@@ -6,6 +6,8 @@
  * facility and block access using fsecure antivirus
  *
  * Copyright (C) Monex AG  Oliver Jehle, 2003
+ * Copyright (C) Rainer Link, 2004
+ *               OpenAntiVirus.org <rainer-pBPPa8WU5k41Tgt60Rntydi2O/[email protected]>
  *
  * based on the existing  F-PROT module by
  * Copyright (C) Rainer Link, 2001-2003
@@ -495,7 +497,7 @@
 
 			/* scan file */
 			retval = fsav_scan(fsav, filepath);
-			if (retval == 2 && deny_access_on_minor_error) {
+			if (retval == -2 && deny_access_on_minor_error) {
 				/* a minor error occured - deny access */
 				vscan_syslog
 				    ("ERROR: daemon failed with a minor error - access to file %s denied",
@@ -510,7 +512,7 @@
 				/* deny access */
 				errno = EACCES;
 				return -1;
-			} else if (retval == 1 && deny_access_on_error) {
+			} else if (retval == -1 && deny_access_on_error) {
 				/* an error occured - can not communicate to daemon - deny access */
 				vscan_syslog
 				    ("ERROR: can not communicate to daemon - access to file %s denied",



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.