~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to sigtool/sigtool.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    { "main.mdu",   1 },    { "daily.mdu",  1 },
85
85
    { "main.ndb",   1 },    { "daily.ndb",  1 },
86
86
    { "main.ndu",   1 },    { "daily.ndu",  1 },
 
87
    { "main.ldb",   1 },    { "daily.ldb",  1 },
 
88
    { "main.ldu",   1 },    { "daily.ldu",  1 },
87
89
    { "main.sdb",   1 },    { "daily.sdb",  1 },
88
90
    { "main.zmd",   1 },    { "daily.zmd",  1 },
89
91
    { "main.rmd",   1 },    { "daily.rmd",  1 },
348
350
            close(sockd);
349
351
            return NULL;
350
352
        } else {
351
 
            mprintf("Signature received (length = %u)\n", strlen(buff) - 10);
 
353
            mprintf("Signature received (length = %lu)\n", strlen(buff) - 10);
352
354
        }
353
355
    } else {
354
356
        mprintf("!getdsig: Communication error with remote server\n");
985
987
             cli_strbcasestr(dent->d_name, ".mdu") ||
986
988
             cli_strbcasestr(dent->d_name, ".ndb") ||
987
989
             cli_strbcasestr(dent->d_name, ".ndu") ||
 
990
             cli_strbcasestr(dent->d_name, ".ldb") ||
 
991
             cli_strbcasestr(dent->d_name, ".ldu") ||
988
992
             cli_strbcasestr(dent->d_name, ".sdb") ||
989
993
             cli_strbcasestr(dent->d_name, ".zmd") ||
990
994
             cli_strbcasestr(dent->d_name, ".rmd") ||
1127
1131
            free(start);
1128
1132
        }
1129
1133
 
1130
 
    } else if(cli_strbcasestr(filename, ".ndb") || cli_strbcasestr(filename, ".ndu") || cli_strbcasestr(filename, ".sdb") || cli_strbcasestr(filename, ".zmd") || cli_strbcasestr(filename, ".rmd")) {
 
1134
    } else if(cli_strbcasestr(filename, ".ndb") || cli_strbcasestr(filename, ".ndu") || cli_strbcasestr(filename, ".ldb") || cli_strbcasestr(filename, ".ldu") || cli_strbcasestr(filename, ".sdb") || cli_strbcasestr(filename, ".zmd") || cli_strbcasestr(filename, ".rmd")) {
1131
1135
 
1132
1136
        while(fgets(buffer, FILEBUFF, fh)) {
1133
1137
            line++;
1134
1138
            cli_chomp(buffer);
1135
 
            start = cli_strtok(buffer, 0, ":");
 
1139
 
 
1140
            if(cli_strbcasestr(filename, ".ldb") || cli_strbcasestr(filename, ".ldu"))
 
1141
                start = cli_strtok(buffer, 0, ";");
 
1142
            else
 
1143
                start = cli_strtok(buffer, 0, ":");
1136
1144
 
1137
1145
            if(!start) {
1138
1146
                mprintf("!listdb: Malformed pattern line %u (file %s)\n", line, filename);
1688
1696
static void help(void)
1689
1697
{
1690
1698
    mprintf("\n");
1691
 
    mprintf("             Clam AntiVirus: Signature Tool (sigtool)  "VERSION"\n");
 
1699
    mprintf("             Clam AntiVirus: Signature Tool (sigtool)  %s\n", get_version());
1692
1700
    mprintf("    (C) 2002 - 2007 ClamAV Team - http://www.clamav.net/team\n\n");
1693
1701
 
1694
1702
    mprintf("    --help                 -h              show help\n");