dovecot-1.2: zlib: Don't expose file descriptor. Others can't do...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 04:35:35 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/b52f165fccd8
changeset: 9053:b52f165fccd8
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 21:35:07 2009 -0400
description:
zlib: Don't expose file descriptor. Others can't do anything with it anyway.
Fixes o_stream_send_istream(zlib_istream), which was trying to sendfile() the
compressed data.

diffstat:

1 file changed, 3 insertions(+), 3 deletions(-)
src/plugins/zlib/istream-zlib.c |    6 +++---

diffs (13 lines):

diff -r 843f81083d0f -r b52f165fccd8 src/plugins/zlib/istream-zlib.c
--- a/src/plugins/zlib/istream-zlib.c	Sun May 17 21:02:38 2009 -0400
+++ b/src/plugins/zlib/istream-zlib.c	Sun May 17 21:35:07 2009 -0400
@@ -246,6 +246,6 @@ struct istream *i_stream_create_zlib(int
 		zstream->istream.istream.seekable = TRUE;
 	}
 
-	return i_stream_create(&zstream->istream, NULL, fd);
-}
-#endif
+	return i_stream_create(&zstream->istream, NULL, -1);
+}
+#endif


More information about the dovecot-cvs mailing list