From: Timo Sirainen Date: Sat, 30 Aug 2008 07:55:04 +0000 (+0300) Subject: zlib plugin/bzip2 handling: Update stream's visible fd after changing it. X-Git-Tag: 1.2.alpha1~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04178739e43dc4e807c1d0d1e8c1f437e350106d;p=thirdparty%2Fdovecot%2Fcore.git zlib plugin/bzip2 handling: Update stream's visible fd after changing it. --HG-- branch : HEAD --- diff --git a/src/plugins/zlib/istream-zlib.c b/src/plugins/zlib/istream-zlib.c index 4b5b6e8221..d48249f5d6 100644 --- a/src/plugins/zlib/istream-zlib.c +++ b/src/plugins/zlib/istream-zlib.c @@ -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