[Clamav-devel] [PATCH] OnAccessExtraScanning: log in verbose mode

Maxime de Roucy maxime.deroucy at gmail.com
Fri Nov 25 18:07:43 EST 2016


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




More information about the clamav-devel mailing list