dovecot-2.0: istream-base64-encoder: Panic if stat() is tried to...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu Nov  4 16:11:18 EET 2010
    
    
  
details:   http://hg.dovecot.org/dovecot-2.0/rev/af252c044393
changeset: 12382:af252c044393
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 04 14:11:15 2010 +0000
description:
istream-base64-encoder: Panic if stat() is tried to be called with exact size.
diffstat:
 src/lib/istream-base64-encoder.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 29c71b6e354e -r af252c044393 src/lib/istream-base64-encoder.c
--- a/src/lib/istream-base64-encoder.c	Thu Nov 04 14:07:30 2010 +0000
+++ b/src/lib/istream-base64-encoder.c	Thu Nov 04 14:11:15 2010 +0000
@@ -120,6 +120,11 @@
 static const struct stat *
 i_stream_base64_encoder_stat(struct istream_private *stream, bool exact)
 {
+	if (exact) {
+		/* too much trouble to implement until it's actually needed */
+		i_panic("istream-base64-encoder: "
+			"stat() doesn't support getting exact size");
+	}
 	return i_stream_stat(stream->parent, exact);
 }
 
    
    
More information about the dovecot-cvs
mailing list