We need the name-pipe for --inplace these days.
[rsync/rsync.git] / main.c
diff --git a/main.c b/main.c
index 14e8c06..62a2b4d 100644 (file)
--- 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. */