samba-vscan/clamav vscan-clamav.c,1.1.2.9,1.1.2.10
Rainer Link <[email protected]> Fri, 10 Sep 2004 09:49:14 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/clamav
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24672
Modified Files:
Tag: VSCAN_0_3
vscan-clamav.c
Log Message:
By creating a new file it is normal that this file do not exists. So this
entry is only a info, that only is shown in verbose mode, and not a error.
Patch by Helmut
Index: vscan-clamav.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/clamav/vscan-clamav.c,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -d -r1.1.2.9 -r1.1.2.10
--- vscan-clamav.c 9 Sep 2004 13:05:02 -0000 1.1.2.9
+++ vscan-clamav.c 10 Sep 2004 09:49:09 -0000 1.1.2.10
@@ -361,7 +361,13 @@
#else
else if ( (default_vfs_ops.stat(conn, fname, &stat_buf)) != 0 ) { /* an error occured */
#endif
- vscan_syslog("ERROR: File %s not found, not readable or an error occured", fname);
+ if ( errno == ENOENT ) {
+ if ( verbose_file_logging )
+ vscan_syslog("INFO: File %s not found! Not scanned!", fname);
+ }
+ 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? */
if ( verbose_file_logging )
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php