diff options
author | Wayne Davison <wayned@samba.org> | 2005-01-14 18:18:31 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-01-14 18:18:31 +0000 |
commit | 7162c65df75c2cf20423e74776c9f6037518b6b0 (patch) | |
tree | 7130646969349d4e42e188fdd912378bef23d39e /main.c | |
parent | bd9fca47087cef1fc2d63f6f198d0d30da9ce6a4 (diff) | |
download | rsync-7162c65df75c2cf20423e74776c9f6037518b6b0.tar.gz rsync-7162c65df75c2cf20423e74776c9f6037518b6b0.tar.bz2 rsync-7162c65df75c2cf20423e74776c9f6037518b6b0.zip |
We also need the "name pipe" from the generator to the receiver
when --partial-dir was specified.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,6 +59,7 @@ extern int filesfrom_fd; extern pid_t cleanup_child_pid; extern char *files_from; extern char *remote_filesfrom_file; +extern char *partial_dir; extern char *basis_dir[]; extern char *rsync_path; extern char *shell_cmd; @@ -463,7 +464,7 @@ 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] && !dry_run; + BOOL need_name_pipe = (basis_dir[0] || partial_dir) && !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. */ |