Commit 85f14172 authored by Wayne Davison's avatar Wayne Davison

Check the return value of flush_write_file() and report an error

if it reports failure.
parent 4539c0d7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment