[PATCH] OnAccessExtraScanning: log in verbose mode

Maxime de Roucy <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.devel
Message-ID <[email protected]>
Before this patch, if OnAccessExtraScanning was active every
file/directory access would have generate a log line.
---
 clamd/onaccess_scth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clamd/onaccess_scth.c b/clamd/onaccess_scth.c
index c28e155..965fbd3 100644
--- a/clamd/onaccess_scth.c
+++ b/clamd/onaccess_scth.c
@@ -105,10 +105,10 @@ void *onas_scan_th(void *arg) {
 
 
 	if (tharg->options & ONAS_SCTH_ISDIR) {
-		logg("ScanOnAccess: Performing additional scanning on directory '%s'\n", tharg->pathname);
+		logg("*ScanOnAccess: Performing additional scanning on directory '%s'\n", tharg->pathname);
 		onas_scth_handle_dir(tharg->pathname);
 	} else if (tharg->options & ONAS_SCTH_ISFILE) {
-		logg("ScanOnAccess: Performing additional scanning on file '%s'\n", tharg->pathname);
+		logg("*ScanOnAccess: Performing additional scanning on file '%s'\n", tharg->pathname);
 		onas_scth_handle_file(tharg->pathname);
 	}
 
-- 
2.10.2

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml
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.