]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
zlib plugin/bzip2 handling: Update stream's visible fd after changing it.
authorTimo Sirainen <tss@iki.fi>
Sat, 30 Aug 2008 07:55:04 +0000 (10:55 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 30 Aug 2008 07:55:04 +0000 (10:55 +0300)
--HG--
branch : HEAD

src/plugins/zlib/istream-zlib.c

index 4b5b6e8221784b7a24123aadaee2779a8c3e33aa..d48249f5d6c24a80c6bb10e2970992e3b40a2db0 100644 (file)
@@ -137,6 +137,7 @@ i_stream_zlib_seek(struct istream_private *stream, uoff_t v_offset, bool mark)
                }
                gzclose(zstream->file);
                zstream->fd = fd;
+               stream->fd = fd;
                zstream->file = gzdopen(zstream->fd, "r");
        }
 #else