The latest patches.
[rsync-patches.git] / fsync.diff
index ff4052dcb870934af3c37d8926bd03e2f9b41af7..0638f698506c3a249b3204058c65c346a618ba96 100644 (file)
@@ -7,7 +7,7 @@ To use this patch, run these commands for a successful build:
     ./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
@@ -94,8 +94,8 @@ diff --git a/util1.c b/util1.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) {