Mercurial > dovecot > core-2.2
changeset 15707:07ee9842a00b
ostream: Default seek&write_at implementations should fail with ESPIPE, not EPIPE.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 31 Jan 2013 22:58:24 +0200 |
parents | e9e6a95cea21 |
children | 4a59737dd2ca |
files | src/lib/ostream.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream.c Thu Jan 31 22:14:12 2013 +0200 +++ b/src/lib/ostream.c Thu Jan 31 22:58:24 2013 +0200 @@ -438,7 +438,7 @@ o_stream_default_seek(struct ostream_private *_stream, uoff_t offset ATTR_UNUSED) { - _stream->ostream.stream_errno = EPIPE; + _stream->ostream.stream_errno = ESPIPE; return -1; } @@ -447,7 +447,7 @@ const void *data ATTR_UNUSED, size_t size ATTR_UNUSED, uoff_t offset ATTR_UNUSED) { - _stream->ostream.stream_errno = EPIPE; + _stream->ostream.stream_errno = ESPIPE; return -1; }