From: Timo Sirainen Date: Fri, 20 Mar 2015 19:01:08 +0000 (+0200) Subject: lib: o_stream_create_rawlog_from_stream() should preserve the output stream fd. X-Git-Tag: 2.2.17.rc1~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93936b4e7179f97ca490c863f666f378ebb08905;p=thirdparty%2Fdovecot%2Fcore.git lib: o_stream_create_rawlog_from_stream() should preserve the output stream fd. ostream-rawlog is just a passthrough stream after all. --- diff --git a/src/lib/ostream-rawlog.c b/src/lib/ostream-rawlog.c index 7df2ba9f56..24aadc4eb7 100644 --- a/src/lib/ostream-rawlog.c +++ b/src/lib/ostream-rawlog.c @@ -80,5 +80,6 @@ o_stream_create_rawlog_from_stream(struct ostream *output, rstream->riostream.rawlog_output = rawlog_output; iostream_rawlog_init(&rstream->riostream, flags, FALSE); - return o_stream_create(&rstream->ostream, output, -1); + return o_stream_create(&rstream->ostream, output, + o_stream_get_fd(output)); }