aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-02-22 22:13:02 +0000
committerWayne Davison <wayned@samba.org>2005-02-22 22:13:02 +0000
commitcb8240a29171f3ef4e77e7d4809a446b3c3408e4 (patch)
tree2021633948170073fe1b52880f8c2c3cb0a6adf4 /main.c
parent352963ddc33a0a56f604395b65222191a38c5c8e (diff)
downloadandroid_external_rsync-cb8240a29171f3ef4e77e7d4809a446b3c3408e4.tar.gz
android_external_rsync-cb8240a29171f3ef4e77e7d4809a446b3c3408e4.tar.bz2
android_external_rsync-cb8240a29171f3ef4e77e7d4809a446b3c3408e4.zip
We need the name-pipe for --inplace these days.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 14e8c069..62a2b4d0 100644
--- a/main.c
+++ b/main.c
@@ -48,6 +48,7 @@ extern int recurse;
extern int fuzzy_basis;
extern int relative_paths;
extern int rsync_port;
+extern int inplace;
extern int whole_file;
extern int read_batch;
extern int write_batch;
@@ -497,8 +498,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 || fuzzy_basis)
- && !dry_run;
+ BOOL need_name_pipe = (basis_dir[0] || partial_dir || fuzzy_basis
+ || inplace) && !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. */