samba-vscan/f-secure vscan-fsav_core.c,1.1.2.5,1.1.2.6

Rainer Link <[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-serv21264

Modified Files:
      Tag: VSCAN_0_3
	vscan-fsav_core.c 
Log Message:
use DEBUG instead of vscan_syslog in some cases


Index: vscan-fsav_core.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/f-secure/Attic/vscan-fsav_core.c,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -d -r1.1.2.5 -r1.1.2.6
--- vscan-fsav_core.c	10 Mar 2004 16:38:47 -0000	1.1.2.5
+++ vscan-fsav_core.c	30 Mar 2004 12:59:43 -0000	1.1.2.6
@@ -252,14 +252,16 @@
 
                 rc=setreuid(geteuid(), geteuid());
                 if (rc != 0) {
-                        vscan_syslog("ERROR: slave cannot setreuid %s (%i)",
-                               strerror(errno), errno);
+			DEBUG(5,
+                        	("samba-vscan (%s): slave cannot setreuid %s (%i)\n",
+                               	module_id, strerror(errno), errno));
                         exit(0);
                 }
                 rc=setsid();
                 if (rc != 0) {
-                        vscan_syslog("ERROR: slave cannot setsid %s (%i)",
-                               strerror(errno), errno);
+                        DEBUG(5,
+				("samba-vscan (%s): slave cannot setsid %s (%i)\n",
+                                 module_id, strerror(errno), errno));
                         exit(0);
                 }
 
@@ -268,8 +270,9 @@
 			    "--standalone", (char *) 0);
 
 		if (rc != 0) {
-                        vscan_syslog("ERROR: slave cannot execlp %s %s (%i)",
-                               binary, strerror(errno), errno);
+                        DEBUG(5,
+				("samba-vscan (%s): slave cannot execlp %s %s (%i)\n",
+                                 module_id, binary, strerror(errno), errno));
 		}
 		exit(0);
 	}
@@ -368,9 +371,9 @@
 	h->sockd = socket(AF_UNIX, SOCK_STREAM, 0);
 
 	if (h->sockd < 0) {
-		vscan_syslog
-		    ("ERROR: socket_create cannot connect %s",
-		     h->server->sun_path);
+		DEBUG(5,
+		    ("samba-vscan (%s): socket_create cannot connect %s\n",
+		     module_id, h->server->sun_path));
 		h->rc = 2;
 	}
 	DEBUG(5,
@@ -540,8 +543,9 @@
                         module_id, h->connect_uid,h->uid));
 
 	if (rc != 0) {
-		 vscan_syslog("ERROR: cannot switch user rc = %i / %s",
-			rc,strerror(errno));
+		DEBUG(5,
+			 ("samba-vscan (%s): cannot switch user rc = %i / %s\n",
+			  module_id,rc,strerror(errno)));
 		return 1;
 	}
 
@@ -550,8 +554,9 @@
                         module_id, h->connect_uid,h->uid));
 		rc=seteuid(h->uid);
 		if (rc != 0) {
-			vscan_syslog("ERROR: cannot switch user rc = %i / %s",
-			rc,strerror(errno));
+			DEBUG(5,
+				("samba-vscan (%s): cannot switch user rc = %i / %s\n",
+				module_id, rc,strerror(errno)));
 			return 1;
 		}
 		h->uid = -1;



-------------------------------------------------------
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.