X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ee297522170840710abacbde52fd1ad97d6ba1d4..85f14172dc8e0caeff77444e7621724d68b912b9:/receiver.c diff --git a/receiver.c b/receiver.c index b4a32d5c..70978fd9 100644 --- a/receiver.c +++ b/receiver.c @@ -289,7 +289,8 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r, offset += len; } - flush_write_file(fd); + if (flush_write_file(fd) < 0) + goto report_write_error; #ifdef HAVE_FTRUNCATE if (inplace && fd != -1)