~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to clamd/fan.c

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#include <string.h>
35
35
#include <errno.h>
36
36
 
37
 
#include <linux/fanotify.h>
38
 
#include "fan-syscalllib.h"
 
37
#include <sys/fanotify.h>
 
38
 
 
39
#include <openssl/ssl.h>
 
40
#include <openssl/err.h>
 
41
#include "libclamav/crypto.h"
 
42
 
39
43
#include "fan.h"
40
44
 
41
45
#include "libclamav/clamav.h"
68
72
    context.filename = fname;
69
73
    context.virsize = 0;
70
74
    if(scan && cl_scandesc_callback(fmd->fd, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) {
71
 
        if(context.virsize)
72
 
            detstats_add(virname, fname, context.virsize, context.virhash);
73
75
        if(extinfo && context.virsize)
74
76
            logg("ScanOnAccess: %s: %s(%s:%llu) FOUND\n", fname, virname, context.virhash, context.virsize);
75
77
        else
234
236
#include <string.h>
235
237
#include <errno.h>
236
238
 
 
239
#include <openssl/ssl.h>
 
240
#include <openssl/err.h>
 
241
#include "libclamav/crypto.h"
 
242
 
237
243
#include "libclamav/clamav.h"
238
244
#include "libclamav/scanners.h"
239
245
 
277
283
        return -1;
278
284
 
279
285
    if(cl_scandesc_callback(fd, &virname, NULL, tharg->engine, tharg->options, &context) == CL_VIRUS) {
280
 
        if(context.virsize)
281
 
            detstats_add(virname, fname, context.virsize, context.virhash);
282
286
        if(extinfo && context.virsize)
283
287
            logg("ScanOnAccess: %s: %s(%s:%llu) FOUND\n", fname, virname, context.virhash, context.virsize);
284
288
        else