aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-02-23 02:14:00 +0000
committerWayne Davison <wayned@samba.org>2005-02-23 02:14:00 +0000
commit38e3910b6f37eab2156496d1c4837c306235e9c7 (patch)
treec90baf747ec9ae04f310f0bee4d3b40fb78e5965 /main.c
parentc26c51a7ee66c0a5d4bb25670b8ef31487421e66 (diff)
downloadandroid_external_rsync-38e3910b6f37eab2156496d1c4837c306235e9c7.tar.gz
android_external_rsync-38e3910b6f37eab2156496d1c4837c306235e9c7.tar.bz2
android_external_rsync-38e3910b6f37eab2156496d1c4837c306235e9c7.zip
One more tweak to the need_name_pipe logic.
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 62a2b4d0..5ff99249 100644
--- a/main.c
+++ b/main.c
@@ -49,6 +49,7 @@ extern int fuzzy_basis;
extern int relative_paths;
extern int rsync_port;
extern int inplace;
+extern int make_backups;
extern int whole_file;
extern int read_batch;
extern int write_batch;
@@ -499,7 +500,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
int status = 0;
int error_pipe[2], name_pipe[2];
BOOL need_name_pipe = (basis_dir[0] || partial_dir || fuzzy_basis
- || inplace) && !dry_run;
+ || (inplace && make_backups)) && !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. */