./configure (optional if already run)
make
-based-on: a6bdf313f239cabfef445bc3658b79aec8a40c37
+based-on: 109dbc0b7535e8f8094802182f9067bfdc88dfc9
diff --git a/options.c b/options.c
--- a/options.c
+++ b/options.c
extern int protect_args;
extern int modify_window;
extern int relative_paths;
-@@ -412,6 +413,13 @@ int copy_file(const char *source, const char *dest, int ofd, mode_t mode)
- rsyserr(FERROR_XFER, errno, "ftruncate %s", full_fname(dest));
+@@ -417,6 +418,13 @@ int copy_file(const char *source, const char *dest, int ofd, mode_t mode)
+ #endif
}
+ if (do_fsync && fsync(ofd) < 0) {