mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:00:12 +01:00
2c55ff96f7
Change-Id: I47d599239dac13f7bc455070dd5a84dd034cbb42 Signed-off-by: SJ <sj@acts.hu>
22 lines
401 B
C
22 lines
401 B
C
/*
|
|
* 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){
|
|
int rav = AVIR_OK;
|
|
|
|
if(clamd_scan(filename, cfg) == AV_VIRUS) rav = AVIR_VIRUS;
|
|
|
|
if(cfg->verbosity >= _LOG_DEBUG) syslog(LOG_PRIORITY, "%s: done virus scanning", filename);
|
|
|
|
return rav;
|
|
}
|