Changed error message that just said "open %s: %s" to "cannot create %s: %s"

in receiver.c because it confuses people when they do something like
    rsync /etc/passwd /tmp/nonexistentdir/passwd
and it printed out something like
    open /tmp/noniexistentdir/.passwd.a004d5 : No such file or directory
Reported by kurt_granroth@pobox.com in PR #1253.
This commit is contained in:
David Dykstra
1999-02-10 18:44:25 +00:00
parent 19c14f987e
commit fd0abefa43

View File

@@ -422,7 +422,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
file->mode & ACCESSPERMS);
}
if (fd2 == -1) {
rprintf(FERROR,"open %s : %s\n",fnametmp,strerror(errno));
rprintf(FERROR,"cannot create %s : %s\n",fnametmp,strerror(errno));
receive_data(f_in,buf,-1,NULL,file->length);
if (buf) unmap_file(buf);
if (fd1 != -1) close(fd1);