From: Wayne Davison Date: Mon, 19 Mar 2007 20:44:52 +0000 (+0000) Subject: Moved one fsync() call. X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/71c2e1b24c9024fd4f6112b31a89d8ad3216d411?ds=sidebyside Moved one fsync() call. --- diff --git a/fsync.diff b/fsync.diff index 7af19ea..276c454 100644 --- a/fsync.diff +++ b/fsync.diff @@ -86,8 +86,8 @@ To use this patch, run these commands for a successful build: extern int modify_window; extern int relative_paths; extern int human_readable; -@@ -315,6 +316,12 @@ int copy_file(const char *source, const - return -1; +@@ -309,6 +310,12 @@ int copy_file(const char *source, const + full_fname(source)); } + if (do_fsync && fsync(ofd) < 0) { @@ -96,6 +96,6 @@ To use this patch, run these commands for a successful build: + return -1; + } + - return 0; - } - + if (close(ofd) < 0) { + rsyserr(FERROR, errno, "close failed on %s", + full_fname(dest));