~ubuntu-branches/ubuntu/quantal/clamav/quantal-updates

« back to all changes in this revision

Viewing changes to freshclam/manager.c

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-06-15 21:20:04 UTC
  • mfrom: (0.47.4) (0.35.26 sid)
  • Revision ID: package-import@ubuntu.com-20120615212004-pbdex598uzvdesx3
Tags: 0.97.5+dfsg-1ubuntu1
* Merge from Debian Unstable.  Remaining Ubuntu changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
* New upstream version no longer includes virus definition files
 (LP: #460316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1316
1316
        char cwd[512], info[32], buff[513], *pt;
1317
1317
        struct dirent *dent;
1318
1318
        int fd, err = 0;
1319
 
        gzFile *gzs = NULL;
 
1319
        gzFile gzs = NULL;
1320
1320
 
1321
1321
    if(!getcwd(cwd, sizeof(cwd))) {
1322
1322
        logg("!buildcld: Can't get path of current working directory\n");
2182
2182
    logg("*Using IPv6 aware code\n");
2183
2183
#endif
2184
2184
 
 
2185
    /* custom dbs */
 
2186
    if((opt = optget(opts, "DatabaseCustomURL"))->enabled) {
 
2187
        while(opt) {
 
2188
            if(updatecustomdb(opt->strarg, &signo, opts, localip, logerr) == 0)
 
2189
                updated = 1;
 
2190
            opt = opt->nextarg;
 
2191
        }
 
2192
    }
 
2193
 
2185
2194
#ifdef HAVE_RESOLV_H
2186
2195
    dnsdbinfo = optget(opts, "DNSDatabaseInfo")->strarg;
2187
2196
 
2363
2372
    mirman_write("mirrors.dat", dbdir, &mdat);
2364
2373
    mirman_free(&mdat);
2365
2374
 
2366
 
    /* custom dbs */
2367
 
    if((opt = optget(opts, "DatabaseCustomURL"))->enabled) {
2368
 
        while(opt) {
2369
 
            if(updatecustomdb(opt->strarg, &signo, opts, localip, logerr) == 0)
2370
 
                updated = 1;
2371
 
            opt = opt->nextarg;
2372
 
        }
2373
 
    }
2374
 
 
2375
2375
    cli_rmdirs(updtmpdir);
2376
2376
 
2377
2377
    if(checkdbdir() < 0) {