dovecot-2.2: ostream: Default seek&write_at implementations shou...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu Jan 31 22:58:36 EET 2013
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/07ee9842a00b
changeset: 15707:07ee9842a00b
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 31 22:58:24 2013 +0200
description:
ostream: Default seek&write_at implementations should fail with ESPIPE, not EPIPE.
diffstat:
 src/lib/ostream.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e9e6a95cea21 -r 07ee9842a00b src/lib/ostream.c
--- 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;
 }
 
    
    
More information about the dovecot-cvs
mailing list