/* * avir.c, SJ */ #include #include #include #include #include #include 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; }