dovecot-1.1: mbox: Replaced EBADMSG errno for invalid mboxes wit...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 16 15:01:07 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/a40ee82a2a23
changeset: 7939:a40ee82a2a23
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 16 15:01:03 2008 +0300
description:
mbox: Replaced EBADMSG errno for invalid mboxes with EINVAL to fix compiling with OpenBSD.
The errno is used only for logging purposes so it doesn't really matter what
it is.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/mbox/istream-raw-mbox.c | 4 ++--
diffs (21 lines):
diff -r 5c905af004aa -r a40ee82a2a23 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c Thu Oct 16 14:49:37 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c Thu Oct 16 15:01:03 2008 +0300
@@ -83,7 +83,7 @@ static int mbox_read_from_line(struct ra
mbox_from_parse(buf+5, pos-5, &received_time, &sender) < 0) {
/* broken From - should happen only at beginning of
file if this isn't a mbox.. */
- rstream->istream.istream.stream_errno = EBADMSG;
+ rstream->istream.istream.stream_errno = EINVAL;
return -1;
}
@@ -307,7 +307,7 @@ static ssize_t i_stream_raw_mbox_read(st
rstream->hdr_offset + rstream->mail_size);
rstream->eof = TRUE;
rstream->corrupted = TRUE;
- rstream->istream.istream.stream_errno = EBADMSG;
+ rstream->istream.istream.stream_errno = EINVAL;
stream->pos = 0;
return -1;
}
More information about the dovecot-cvs
mailing list