mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
antivirus fixes
Change-Id: If5d5caee19880ba121d7f1165a22f7e8b811e476 Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
2c55ff96f7
commit
2b4c64de0e
@ -64,7 +64,7 @@ int clamd_scan(char *tmpfile, struct __config *cfg){
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,11 @@ void check_and_create_directories(struct __config *cfg, uid_t uid, gid_t gid){
|
||||
|
||||
for(i=0; i<cfg->number_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
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -104,7 +104,6 @@ int process_email(char *filename, struct session_data *sdata, struct __data *dat
|
||||
|
||||
#ifdef HAVE_ANTIVIRUS
|
||||
if(do_av_check(filename, cfg) == AVIR_VIRUS){
|
||||
syslog(LOG_PRIORITY, "%s: discarding: virus", filename);
|
||||
unlink(filename);
|
||||
return OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user