summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-20 23:32:17 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-20 23:32:17 +0000
commit1b3cadaa39db9871d8fd4a82ec50608ebb2708af (patch)
tree8bc8a9c899ec4598e690ae8e6fdcb82a77896897 /receiver.c
parent61ca7d596c3aeb8482f0152d7123098aebaaaeb5 (diff)
downloadrsync-1b3cadaa39db9871d8fd4a82ec50608ebb2708af.tar.gz
Re-activate the piece of code that creates intervening directories
when --relative-paths is used. The code was accidentally skipped starting in CVS version 1.32 of receiver.c. Noticed by Craig Barratt.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/receiver.c b/receiver.c
index a4a3383d..ae270cf7 100644
--- a/receiver.c
+++ b/receiver.c
@@ -425,13 +425,6 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
this out. We also set it initially without group
access because of a similar race condition. */
fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS);
- if (fd2 == -1) {
- rprintf(FERROR,"mkstemp %s failed: %s\n",fnametmp,strerror(errno));
- receive_data(f_in,buf,-1,NULL,file->length);
- if (buf) unmap_file(buf);
- if (fd1 != -1) close(fd1);
- continue;
- }
/* in most cases parent directories will already exist
because their information should have been previously
@@ -442,7 +435,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS);
}
if (fd2 == -1) {
- rprintf(FERROR,"cannot create %s : %s\n",fnametmp,strerror(errno));
+ rprintf(FERROR,"mkstemp %s failed: %s\n",fnametmp,strerror(errno));
receive_data(f_in,buf,-1,NULL,file->length);
if (buf) unmap_file(buf);
if (fd1 != -1) close(fd1);