samba3-vscan/antivir vscan-antivir.c,1.3,1.4
Rainer Link <[email protected]> Wed, 27 Jul 2005 07:59:18 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba3-vscan/antivir
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13444/antivir
Modified Files:
vscan-antivir.c
Log Message:
bugfix, to make it compile
Index: vscan-antivir.c
===================================================================
RCS file: /cvsroot/openantivirus/samba3-vscan/antivir/vscan-antivir.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- vscan-antivir.c 25 Jul 2005 14:14:00 -0000 1.3
+++ vscan-antivir.c 27 Jul 2005 07:59:15 -0000 1.4
@@ -222,16 +222,14 @@
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));
}
- else if ( (SMB_VFS_NEXT_STAT(handle, conn, fname, &stat_buf)) != 0 ) /* an error occured */
+ else if ( (SMB_VFS_NEXT_STAT(handle, conn, fname, &stat_buf)) != 0 ) { /* an error occured */
if ( errno == ENOENT ) {
if ( verbose_file_logging )
vscan_syslog("INFO: File %s not found! Not scanned!", fname);
- }
- else {
+ } else {
vscan_syslog("ERROR: File %s not readable or an error occured", fname);
}
- }
- else if ( S_ISDIR(stat_buf.st_mode) ) { /* is it a directory? */
+ } else if ( S_ISDIR(stat_buf.st_mode) ) { /* is it a directory? */
if ( verbose_file_logging )
vscan_syslog("INFO: File %s is a directory! Not scanned!", fname);
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click