freshclam, sigtool: use zlib's Z_FILTERED strategy

Thanks to Edwin
remotes/push_mirror/0.96
Tomasz Kojm 16 years ago
parent 88ce192ef5
commit 0d71b6f11b
  1. 5
      ChangeLog
  2. 2
      freshclam/manager.c
  3. 4
      sigtool/sigtool.c

@ -1,3 +1,8 @@
Mon Feb 8 10:30:03 CET 2010 (tk)
---------------------------------
* freshclam, sigtool: use zlib's Z_FILTERED strategy
Thanks to Edwin
Sat Feb 6 16:02:28 CET 2010 (acab)
-----------------------------------
* clamd/server-th.c: reset the selfcheck timeout even if we reload

@ -1370,7 +1370,7 @@ static int buildcld(const char *tmpdir, const char *dbname, const char *newfile,
if(compr) {
close(fd);
if(!(gzs = gzopen(newfile, "ab"))) {
if(!(gzs = gzopen(newfile, "ab9f"))) {
logg("!buildcld: gzopen() failed for %s\n", newfile);
CHDIR_ERR(cwd);
unlink(newfile);

@ -569,7 +569,7 @@ static int script2cdiff(const char *script, const char *builder, const struct op
return -1;
}
if(!(gzh = gzopen(cdiff, "ab"))) {
if(!(gzh = gzopen(cdiff, "ab9f"))) {
mprintf("!script2cdiff: Can't open file %s for appending\n", cdiff);
unlink(cdiff);
free(cdiff);
@ -836,7 +836,7 @@ static int build(const struct optstruct *opts)
return -1;
}
if((tar = gzopen(tarfile, "wb")) == NULL) {
if((tar = gzopen(tarfile, "wb9f")) == NULL) {
mprintf("!build: Can't open file %s for writing\n", tarfile);
free(tarfile);
FREE_LS(dblist2);

Loading…
Cancel
Save