]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
istream-tee: Copy the parent stream's name to child streams.
authorTimo Sirainen <tss@iki.fi>
Mon, 4 Feb 2013 13:59:50 +0000 (15:59 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 4 Feb 2013 13:59:50 +0000 (15:59 +0200)
src/lib/istream-tee.c

index 15d8ce88033ff2b2239401a0ae9371d1dc2a63ac..24a046c70ce921e18b386ef6c35978c4a90741f2 100644 (file)
@@ -223,6 +223,7 @@ struct istream *tee_i_stream_create_child(struct tee_istream *tee)
        tee->children = tstream;
 
        ret = i_stream_create(&tstream->istream, input, i_stream_get_fd(input));
+       i_stream_set_name(&tstream->istream.istream, i_stream_get_name(input));
        /* we keep the reference in tee stream, no need for extra references */
        i_stream_unref(&input);
        return ret;