summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-02 08:49:47 +0000
committerWayne Davison <wayned@samba.org>2005-01-02 08:49:47 +0000
commit1492b4b2b20d6dddc5eb22909a6853b0e96a50c5 (patch)
tree85d1bb4cf566b12dba5831a1805f7319df479292
parent5b7bcac26081ae72da6c5d2e6d8247de17f36b93 (diff)
downloadrsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.tar.gz
rsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.tar.bz2
rsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.zip
The deflate_stored() function needed to support Z_INSERT_ONLY.
-rw-r--r--zlib/deflate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zlib/deflate.c b/zlib/deflate.c
index 74f67cfe..20209df4 100644
--- a/zlib/deflate.c
+++ b/zlib/deflate.c
@@ -1092,6 +1092,11 @@ local block_state deflate_stored(s, flush)
max_block_size = s->pending_buf_size - 5;
}
+ if (flush == Z_INSERT_ONLY) {
+ s->block_start = s->strstart;
+ return need_more;
+ }
+
/* Copy as much as possible from input to output: */
for (;;) {
/* Fill the window as much as possible: */