dovecot-2.2: fs-api: Fixed fs_copy() generic implementation's er...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Feb 26 17:16:55 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/38b9ea9fef2c
changeset: 15977:38b9ea9fef2c
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 26 17:16:18 2013 +0200
description:
fs-api: Fixed fs_copy() generic implementation's error messages
diffstat:
src/lib-fs/fs-api.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r 287e48607c96 -r 38b9ea9fef2c src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Tue Feb 26 15:55:16 2013 +0200
+++ b/src/lib-fs/fs-api.c Tue Feb 26 17:16:18 2013 +0200
@@ -451,11 +451,13 @@
}
while (o_stream_send_istream(dest->copy_output, dest->copy_input) > 0) ;
if (dest->copy_input->stream_errno != 0) {
+ errno = dest->copy_input->stream_errno;
fs_set_error(dest->fs, "read(%s) failed: %m",
i_stream_get_name(dest->copy_input));
return -1;
}
if (dest->copy_output->stream_errno != 0) {
+ errno = dest->copy_output->stream_errno;
fs_set_error(dest->fs, "write(%s) failed: %m",
o_stream_get_name(dest->copy_output));
return -1;
More information about the dovecot-cvs
mailing list