From 38e3910b6f37eab2156496d1c4837c306235e9c7 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 23 Feb 2005 02:14:00 +0000 Subject: [PATCH] One more tweak to the need_name_pipe logic. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.34.1