diff --git a/src/clamd.c b/src/clamd.c index 443561e..a2dda47 100644 --- a/src/clamd.c +++ b/src/clamd.c @@ -64,7 +64,7 @@ if(q){ *q = '\0'; p++; - syslog(LOG_PRIORITY, "VIRUS <%s> found in %s", p, tmpfile); + syslog(LOG_PRIORITY, "%s: VIRUS <%s> found, status=%s", tmpfile, p, S_STATUS_DISCARDED); } } diff --git a/src/dirs.c b/src/dirs.c index b83e8d9..56e0e6e 100644 --- a/src/dirs.c +++ b/src/dirs.c @@ -48,7 +48,11 @@ for(i=0; inumber_of_worker_processes; i++){ snprintf(s, sizeof(s)-1, "%s/%d", cfg->workdir, i); + #ifdef HAVE_ANTIVIRUS + createdir(s, uid, gid, 0711); + #else createdir(s, uid, gid, 0700); + #endif } } diff --git a/src/piler.c b/src/piler.c index 5ac6f55..2d9dc0d 100644 --- a/src/piler.c +++ b/src/piler.c @@ -104,7 +104,6 @@ #ifdef HAVE_ANTIVIRUS if(do_av_check(filename, cfg) == AVIR_VIRUS){ - syslog(LOG_PRIORITY, "%s: discarding: virus", filename); unlink(filename); return OK; }