X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cb8240a29171f3ef4e77e7d4809a446b3c3408e4..7f2a1f651e6db7483bcb3d2678dcb60cc4e54582:/main.c 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. */