[dovecot-cvs] dovecot/src/lib ostream-file.c,1.54,1.55
cras at dovecot.org
cras at dovecot.org
Sat Oct 15 23:11:29 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv301
Modified Files:
ostream-file.c
Log Message:
Removed accidentally committed debug errors.
Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- ostream-file.c 9 Oct 2005 09:55:29 -0000 1.54
+++ ostream-file.c 15 Oct 2005 20:11:27 -0000 1.55
@@ -159,7 +159,6 @@
if (ret < 0) {
if (errno == EAGAIN || errno == EINTR)
return 0;
- if (errno == EINVAL) i_error("o_stream_sendv() -> EINVAL");
fstream->ostream.ostream.stream_errno = errno;
stream_closed(fstream);
return -1;
@@ -282,7 +281,6 @@
if (offset > OFF_T_MAX) {
stream->ostream.stream_errno = EINVAL;
- i_error("_seek(1) -> EINVAL");
return -1;
}
@@ -291,13 +289,11 @@
ret = lseek(fstream->fd, (off_t)offset, SEEK_SET);
if (ret < 0) {
- if (errno == EINVAL) i_error("_seek(2) -> EINVAL");
stream->ostream.stream_errno = errno;
return -1;
}
if (ret != (off_t)offset) {
- i_error("_seek(3) -> EINVAL");
stream->ostream.stream_errno = EINVAL;
return -1;
}
@@ -507,7 +503,6 @@
break;
}
- if (errno == EINVAL) i_error("io_stream_sendfile() -> EINVAL");
outstream->ostream.stream_errno = errno;
if (errno != EINVAL) {
/* close only if error wasn't because
@@ -657,7 +652,6 @@
ret = write_full(foutstream->fd, data, size);
if (ret < 0) {
/* error */
- if (errno == EINVAL) i_error("copy backwards -> EINVAL");
outstream->ostream.stream_errno = errno;
return -1;
}
@@ -676,7 +670,6 @@
st = i_stream_stat(instream, TRUE);
if (st == NULL) {
- if (errno == EINVAL) i_error("_send_istream() / stat -> EINVAL");
outstream->ostream.stream_errno = instream->stream_errno;
return -1;
}
@@ -692,7 +685,6 @@
/* copying data within same fd. we'll have to be careful with
seeks and overlapping writes. */
if (in_size == (uoff_t)-1) {
- i_error("_send_istream() / in_size == -1 -> EINVAL");
outstream->ostream.stream_errno = EINVAL;
return -1;
}
More information about the dovecot-cvs
mailing list