Skip to content

Commit

Permalink
lib-fs: istream-metawrap can now safely have a readable fd
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed May 18, 2016
1 parent d28179f commit 456602d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib-fs/istream-metawrap.c
Expand Up @@ -132,9 +132,7 @@ i_stream_create_metawrap(struct istream *input,
mstream->istream.seek = i_stream_metawrap_seek;
mstream->istream.stat = input->seekable ? i_stream_metawrap_stat : NULL;

/* 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.readable_fd = input->readable_fd;
mstream->istream.istream.blocking = input->blocking;
mstream->istream.istream.seekable = input->seekable;
mstream->in_metadata = TRUE;
Expand Down

0 comments on commit 456602d

Please sign in to comment.