Ignore:
Timestamp:
Apr 19, 2011, 11:12:07 PM (14 years ago)
Author:
Yuri Dario
Message:

clamav: update trunk to 0.97.

Location:
clamav/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • clamav/trunk

  • TabularUnified clamav/trunk/clamd/clamukofs.c

    r189 r319  
    4242#include "dazukofs.h"
    4343#include "clamuko.h"
     44#include "scanner.h"
    4445
    4546static pthread_mutex_t running_mutex = PTHREAD_MUTEX_INITIALIZER;
     
    8485        struct thrarg *tharg = (struct thrarg *) arg;
    8586        sigset_t sigset;
    86         unsigned int sizelimit = 0, virsize;
     87        unsigned int sizelimit = 0;
    8788        struct stat sb;
    8889        dazukofs_handle_t scan_hndl;
     
    9192        int skip_scan = 0, extinfo;
    9293        const char *virname;
    93         char filename[4096], virhash[33];
     94        char filename[4096];
     95        struct cb_context context;
    9496
    9597    /* ignore all signals */
     
    152154        }
    153155
     156        context.filename = NULL;
     157        context.virsize = 0;
    154158        if(skip_scan) {
    155159            acc.deny = 0;
    156160            /* reset skip flag */
    157161            skip_scan = 0;
    158         } else if(cli_scandesc_stats(acc.fd, &virname, virhash, &virsize, NULL, tharg->engine,
    159                               tharg->options) == CL_VIRUS) {
     162        } else if(cl_scandesc_callback(acc.fd, &virname, NULL, tharg->engine,
     163                              tharg->options, &context) == CL_VIRUS) {
    160164            dazukofs_get_filename(&acc, filename, sizeof(filename));
    161             if(extinfo && virsize)
    162                 logg("Clamuko: %s: %s(%s:%u) FOUND\n", filename, virname, virhash, virsize);
     165            if(context.virsize)
     166                detstats_add(virname, filename, context.virsize, context.virhash);
     167            if(extinfo && context.virsize)
     168                logg("Clamuko: %s: %s(%s:%llu) FOUND\n", filename, virname, context.virhash, context.virsize);
    163169            else
    164170                logg("Clamuko: %s: %s FOUND\n", filename, virname);
Note: See TracChangeset for help on using the changeset viewer.