From: Timo Sirainen Date: Mon, 2 Mar 2015 12:36:15 +0000 (+0200) Subject: lib: Give a name for istream-seekable's temporary fd istream. X-Git-Tag: 2.2.16.rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6bba612af5207c24f6f02497d64b0ea03e7bbd;p=thirdparty%2Fdovecot%2Fcore.git lib: Give a name for istream-seekable's temporary fd istream. --- diff --git a/src/lib/istream-seekable.c b/src/lib/istream-seekable.c index afea9ff0f4..daba7a3dd7 100644 --- a/src/lib/istream-seekable.c +++ b/src/lib/istream-seekable.c @@ -105,6 +105,8 @@ static int copy_to_temp_file(struct seekable_istream *sstream) sstream->fd = fd; sstream->fd_input = i_stream_create_fd_autoclose(&fd, sstream->istream.max_buffer_size); + i_stream_set_name(sstream->fd_input, t_strdup_printf( + "(seekable temp-istream for: %s)", i_stream_get_name(&stream->istream))); /* read back the data we just had in our buffer */ i_stream_seek(sstream->fd_input, stream->istream.v_offset);