[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Tomasz Kojm tkojm at clamav.net
Sun Apr 4 01:19:05 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 0d71b6f11bfa3efee2e72ac02e207d910635ca7a
Author: Tomasz Kojm <tkojm at clamav.net>
Date:   Mon Feb 8 10:31:30 2010 +0100

    freshclam, sigtool: use zlib's Z_FILTERED strategy
    Thanks to Edwin

diff --git a/ChangeLog b/ChangeLog
index b794e4e..cf60bb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/freshclam/manager.c b/freshclam/manager.c
index c3cdc88..5827000 100644
--- a/freshclam/manager.c
+++ b/freshclam/manager.c
@@ -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);
diff --git a/sigtool/sigtool.c b/sigtool/sigtool.c
index 621921f..1f3ae16 100644
--- a/sigtool/sigtool.c
+++ b/sigtool/sigtool.c
@@ -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);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list