]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix --force with --one-file-system w/o --delete.
authorWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 16:19:50 +0000 (08:19 -0800)
committerWayne Davison <wayned@samba.org>
Tue, 22 Feb 2011 16:21:08 +0000 (08:21 -0800)
main.c

diff --git a/main.c b/main.c
index 85e38f386613a06fa1f325e8846fcec0b8c94a99..b6cc6bdea333de092a046bb1c8264f69ea3c5c2a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -64,6 +64,7 @@ extern int write_batch;
 extern int batch_fd;
 extern int filesfrom_fd;
 extern int connect_timeout;
+extern dev_t filesystem_dev;
 extern pid_t cleanup_child_pid;
 extern unsigned int module_dirlen;
 extern struct stats stats;
@@ -542,6 +543,7 @@ static char *get_local_name(struct file_list *flist, char *dest_path)
                                        full_fname(dest_path));
                                exit_cleanup(RERR_FILESELECT);
                        }
+                       filesystem_dev = st.st_dev; /* ensures --force works right w/-x */
                        return NULL;
                }
                if (file_total > 1) {