[dovecot-cvs]
dovecot/src/lib-storage/index/mbox istream-raw-mbox.c, 1.18, 1.19
cras at dovecot.org
cras at dovecot.org
Sun Aug 22 14:09:00 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv5127
Modified Files:
istream-raw-mbox.c
Log Message:
Buffer wasn't set if _read() returned -2.
Index: istream-raw-mbox.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/istream-raw-mbox.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- istream-raw-mbox.c 22 Aug 2004 04:00:07 -0000 1.18
+++ istream-raw-mbox.c 22 Aug 2004 11:08:58 -0000 1.19
@@ -150,8 +150,10 @@
if (ret < 0) {
if (ret == -2) {
if (stream->istream.v_offset + pos ==
- rstream->input_peak_offset)
+ rstream->input_peak_offset) {
+ stream->buffer = buf;
return -2;
+ }
} else {
/* we've read the whole file, final byte should be
the \n trailer */
More information about the dovecot-cvs
mailing list