samba-vscan/global vscan-parameter.c,1.1.2.6,1.1.2.7

Rainer Link <[email protected]> Tue, 29 Mar 2005 19:20:25 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/samba-vscan/global
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14627/global

Modified Files:
      Tag: VSCAN_0_3
	vscan-parameter.c 
Log Message:
skip scanning of file based on regexp. Patch by Sven; currently
only clamav supported, needs to be ported to other modules as well


Index: vscan-parameter.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/global/Attic/vscan-parameter.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- vscan-parameter.c	21 Jan 2005 21:07:00 -0000	1.1.2.6
+++ vscan-parameter.c	29 Mar 2005 19:20:22 -0000	1.1.2.7
@@ -81,6 +81,8 @@
         pstrcpy(vscan_config->common.exclude_file_types, VSCAN_FT_EXCLUDE_LIST);
 	DEBUG(3, ("default value for file type exclude: %s\n", vscan_config->common.exclude_file_types));
 
+	/* file regexp exclude regexp */
+	pstrcpy(vscan_config->common.exclude_file_regexp, VSCAN_FT_EXCLUDE_REGEXP);
 }
 
 /** 
@@ -208,6 +210,9 @@
         } else if ( StrCaseCmp("exclude file types", param) == 0 ) {
                 pstrcpy(vscan_config->common.exclude_file_types, value);
                 DEBUG(3, ("Exclude list is: %s\n", vscan_config->common.exclude_file_types));
+	} else if ( StrCaseCmp("exclude file regexp", param) == 0 ) {
+		pstrcpy(vscan_config->common.exclude_file_regexp, value);
+		DEBUG(3, ("exclude file regexp is: %s\n", vscan_config->common.exclude_file_regexp));
 	} else {
 		/* unknown common parameter, it must be handled by 
 		   corresponding module */



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click