aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-24 17:54:41 +0000
committerWayne Davison <wayned@samba.org>2006-02-24 17:54:41 +0000
commita695b379b58e6443c83d4a2acfe6aeb040343cdf (patch)
treec200bd79b47debf79d2dc63e99547bd592d6c599 /main.c
parent88c2190a7c193a7b9218c89f445638d29e4be132 (diff)
downloadandroid_external_rsync-a695b379b58e6443c83d4a2acfe6aeb040343cdf.tar.gz
android_external_rsync-a695b379b58e6443c83d4a2acfe6aeb040343cdf.tar.bz2
android_external_rsync-a695b379b58e6443c83d4a2acfe6aeb040343cdf.zip
Make sure the receiver resets copy_dirlinks (so that it can't
affect the delete scan).
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7de34f23..7ed0d39a 100644
--- a/main.c
+++ b/main.c
@@ -41,6 +41,7 @@ extern int do_stats;
extern int log_got_error;
extern int module_id;
extern int copy_links;
+extern int copy_dirlinks;
extern int keep_dirlinks;
extern int preserve_hard_links;
extern int protocol_version;
@@ -625,7 +626,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
/* The receiving side mustn't obey this, or an existing symlink that
* points to an identical file won't be replaced by the referent. */
- copy_links = 0;
+ copy_links = copy_dirlinks = 0;
if (preserve_hard_links)
init_hard_links();