X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/c0c7984e7f6009b6ab18ad3da998a56a9c0f083d..6ac9ce9a46c911cbaa7f3d1c33f49f595373622d:/fsync.diff diff --git a/fsync.diff b/fsync.diff index e0cdbbf..a52c8c5 100644 --- a/fsync.diff +++ b/fsync.diff @@ -34,7 +34,7 @@ diff --git a/options.c b/options.c {"rsh", 'e', POPT_ARG_STRING, &shell_cmd, 0, 0, 0 }, {"rsync-path", 0, POPT_ARG_STRING, &rsync_path, 0, 0, 0 }, {"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 }, -@@ -2003,6 +2006,9 @@ void server_options(char **args, int *argc_p) +@@ -2017,6 +2020,9 @@ void server_options(char **args, int *argc_p) args[ac++] = tmpdir; } @@ -90,7 +90,7 @@ diff --git a/util.c b/util.c extern int modify_window; extern int relative_paths; extern int human_readable; -@@ -315,6 +316,13 @@ int copy_file(const char *source, const char *dest, int ofd, +@@ -334,6 +335,13 @@ int copy_file(const char *source, const char *dest, int ofd, full_fname(source)); } @@ -102,5 +102,5 @@ diff --git a/util.c b/util.c + } + if (close(ofd) < 0) { + int save_errno = errno; rsyserr(FERROR_XFER, errno, "close failed on %s", - full_fname(dest));