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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/f694f8fa4200
changeset: 8275:f694f8fa4200
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 224c89c6c4ed -r f694f8fa4200 src/plugins/zlib/istream-zlib.c
--- a/src/plugins/zlib/istream-zlib.c	Sun May 17 20:34:50 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