aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-02-14 02:41:18 +0000
committerWayne Davison <wayned@samba.org>2005-02-14 02:41:18 +0000
commit06b96ffa861132da3545c7c7cf3a0fa150b70c9e (patch)
treeb9e0189ebaa822fc293323313785c8aee60d657c /main.c
parentc4ed1487f99eec637efe016a9f11848651256910 (diff)
downloadandroid_external_rsync-06b96ffa861132da3545c7c7cf3a0fa150b70c9e.tar.gz
android_external_rsync-06b96ffa861132da3545c7c7cf3a0fa150b70c9e.tar.bz2
android_external_rsync-06b96ffa861132da3545c7c7cf3a0fa150b70c9e.zip
Set need_name_pipe if --fuzzy was specified.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 65c0ec57..fc67eae2 100644
--- a/main.c
+++ b/main.c
@@ -44,6 +44,7 @@ extern int keep_dirlinks;
extern int preserve_hard_links;
extern int protocol_version;
extern int recurse;
+extern int fuzzy_basis;
extern int relative_paths;
extern int rsync_port;
extern int whole_file;
@@ -488,7 +489,8 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
int pid;
int status = 0;
int error_pipe[2], name_pipe[2];
- BOOL need_name_pipe = (basis_dir[0] || partial_dir) && !dry_run;
+ BOOL need_name_pipe = (basis_dir[0] || partial_dir || fuzzy_basis)
+ && !dry_run;
/* The receiving side mustn't obey this, or an existing symlink that
* points to an identical file won't be replaced by the referent. */