X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/31f3b68a97eee6061e36c3a3fffb24786e9fb1a7..067669dac74abfa2acaaef6b1d078d861814e100:/receiver.c diff --git a/receiver.c b/receiver.c index a46fafe1..be433ae1 100644 --- a/receiver.c +++ b/receiver.c @@ -59,7 +59,7 @@ static int delete_already_done(struct file_list *flist,int j) for (i=0;imode & INITACCESSPERMS); } if (fd2 == -1) { - rprintf(FERROR,"mkstemp %s failed: %s\n",fnametmp,strerror(errno)); + extern char curr_dir[]; + char *p1, *p2; + if (*fnametmp == '.') { + p1 = curr_dir; + p2 = "/"; + } else + p1 = p2 = ""; + rprintf(FERROR, "mkstemp %s%s%s failed: %s\n", + p1, p2, fnametmp, strerror(errno)); receive_data(f_in,buf,-1,NULL,file->length); if (buf) unmap_file(buf); if (fd1 != -1) close(fd1);