diff options
author | Wayne Davison <wayned@samba.org> | 2005-01-02 08:49:47 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-01-02 08:49:47 +0000 |
commit | 1492b4b2b20d6dddc5eb22909a6853b0e96a50c5 (patch) | |
tree | 85d1bb4cf566b12dba5831a1805f7319df479292 /zlib | |
parent | 5b7bcac26081ae72da6c5d2e6d8247de17f36b93 (diff) | |
download | rsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.tar.gz rsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.tar.bz2 rsync-1492b4b2b20d6dddc5eb22909a6853b0e96a50c5.zip |
The deflate_stored() function needed to support Z_INSERT_ONLY.
Diffstat (limited to 'zlib')
-rw-r--r-- | zlib/deflate.c | 5 |
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: */ |