dovecot-2.2: lib: Give a name for istream-seekable's temporary f...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 2 12:36:52 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/7b2275ae8c19
changeset: 18280:7b2275ae8c19
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 02 14:36:15 2015 +0200
description:
lib: Give a name for istream-seekable's temporary fd istream.

diffstat:

 src/lib/istream-seekable.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 6e3cb68b274d -r 7b2275ae8c19 src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c	Sun Mar 01 22:14:01 2015 +0200
+++ b/src/lib/istream-seekable.c	Mon Mar 02 14:36:15 2015 +0200
@@ -105,6 +105,8 @@
 	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);


More information about the dovecot-cvs mailing list