summaryrefslogtreecommitdiff
path: root/mailbox/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailbox/stream.c')
-rw-r--r--mailbox/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mailbox/stream.c b/mailbox/stream.c
index 95524ec6b..32db7c6c6 100644
--- a/mailbox/stream.c
+++ b/mailbox/stream.c
@@ -324,6 +324,8 @@ mu_stream_seek (mu_stream_t stream, mu_off_t offset, int whence,
if ((rc = _stream_flush_buffer (stream, 1)))
return rc;
rc = stream->seek (stream, offset, &stream->offset);
+ if (rc == ESPIPE)
+ return rc;
if (rc)
return _stream_seterror (stream, rc, 1);
_stream_cleareof (stream);

Return to:

Send suggestions and report system problems to the System administrator.