[dovecot-cvs] dovecot/src/lib ibuffer-file.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Fri Oct 25 05:58:46 EEST 2002
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv27949
Modified Files:
ibuffer-file.c
Log Message:
If i_buffer_read() fails because of EOF, set buf_errno to 0.
Index: ibuffer-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ibuffer-file.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ibuffer-file.c 20 Oct 2002 02:53:01 -0000 1.2
+++ ibuffer-file.c 25 Oct 2002 01:58:43 -0000 1.3
@@ -210,6 +210,7 @@
ret = read(buf->fd, buf->w_buffer + buf->pos, size);
if (ret == 0) {
/* EOF */
+ buf->ibuffer.buf_errno = 0;
return -1;
}
More information about the dovecot-cvs
mailing list