Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8279:444f0d5bfcbc HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 16 Oct 2008 15:00:44 +0300 |
parents | 6b23fa31c553 |
children | 116202a99576 |
files | src/lib-storage/index/mbox/istream-raw-mbox.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c Thu Oct 16 14:58:51 2008 +0300 +++ b/src/lib-storage/index/mbox/istream-raw-mbox.c Thu Oct 16 15:00:44 2008 +0300 @@ -84,7 +84,7 @@ mbox_from_parse(buf+5, pos-5, &received_time, &tz, &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; } @@ -309,7 +309,7 @@ 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; }