~ubuntu-branches/ubuntu/lucid/clamav/lucid-security

« back to all changes in this revision

Viewing changes to shared/output.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-03-19 15:36:31 UTC
  • mfrom: (81.1.41 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130319153631-796qnojny78zycks
Tags: 0.97.7+dfsg-1ubuntu0.10.04.1
* SECURITY UPDATE: Updated to 0.97.7 to fix multiple security issues.
  (LP: #1157385)
  - CVE numbers pending

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
#include "output.h"
54
54
#include "libclamav/others.h"
 
55
#include "libclamav/str.h"
55
56
 
56
57
#ifdef CL_NOTHREADS
57
58
#undef CL_THREAD_SAFE
361
362
        }
362
363
    }
363
364
 
 
365
    if(logg_foreground) {
 
366
        if(buff[0] != '#')
 
367
            mprintf("%s", buff);
 
368
    }
 
369
 
364
370
#if defined(USE_SYSLOG) && !defined(C_AIX)
365
371
    if(logg_syslog) {
 
372
        cli_chomp(buff);
366
373
        if(buff[0] == '!') {
367
374
            syslog(LOG_ERR, "%s", buff + 1);
368
375
        } else if(buff[0] == '^') {
377
384
    }
378
385
#endif
379
386
 
380
 
    if(logg_foreground) {
381
 
        if(buff[0] != '#')
382
 
            mprintf("%s", buff);
383
 
    }
384
 
 
385
387
#ifdef CL_THREAD_SAFE
386
388
    pthread_mutex_unlock(&logg_mutex);
387
389
#endif