piler/src/avir.c

22 lines
399 B
C
Raw Normal View History

2011-11-14 15:57:52 +01:00
/*
* avir.c, SJ
*/
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <piler.h>
int do_av_check(char *filename, struct config *cfg){
2011-11-14 15:57:52 +01:00
int rav = AVIR_OK;
if(clamd_scan(filename, cfg) == AV_VIRUS) rav = AVIR_VIRUS;
2011-11-14 15:57:52 +01:00
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: done virus scanning", filename);
2015-11-27 11:56:19 +01:00
2011-11-14 15:57:52 +01:00
return rav;
}