From 59924aa8cfd7f05c3305cc54dec906da82504e85 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 5 Sep 2009 09:40:53 -0700 Subject: [PATCH] Fix daemon's conveyance of io_error value from sender. --- sender.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sender.c b/sender.c index 815371a0..e3a896af 100644 --- a/sender.c +++ b/sender.c @@ -172,6 +172,7 @@ void send_files(int f_in, int f_out) int itemizing = am_server ? logfile_format_has_i : stdout_format_has_i; enum logcode log_code = log_before_transfer ? FLOG : FINFO; int f_xfer = write_batch < 0 ? batch_fd : f_out; + int save_io_error = io_error; int ndx, j; if (DEBUG_GTE(SEND, 1)) @@ -381,6 +382,9 @@ void send_files(int f_in, int f_out) if (make_backups < 0) make_backups = -make_backups; + if (io_error != save_io_error && protocol_version >= 30) + send_msg_int(MSG_IO_ERROR, io_error); + if (DEBUG_GTE(SEND, 1)) rprintf(FINFO, "send files finished\n"); -- 2.34.1