]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: istream-metawrap can't have a readable fd currently
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 19:26:50 +0000 (22:26 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 19:26:50 +0000 (22:26 +0300)
src/lib-fs/istream-metawrap.c

index c869736278c3807487c9e530cae2bf3fab662960..d757f51a43b9967b0abfd4a1e9c8114e43141179 100644 (file)
@@ -132,7 +132,9 @@ i_stream_create_metawrap(struct istream *input,
        mstream->istream.seek = i_stream_metawrap_seek;
        mstream->istream.stat = input->seekable ? i_stream_metawrap_stat : NULL;
 
-       mstream->istream.istream.readable_fd = input->readable_fd;
+       /* we can't set abs_start_offset early enough so that it would get
+          passed to our child istreams. */
+       mstream->istream.istream.readable_fd = FALSE;
        mstream->istream.istream.blocking = input->blocking;
        mstream->istream.istream.seekable = input->seekable;
        mstream->in_metadata = TRUE;