Changed error message that just said "open %s: %s" to "cannot create %s: %s"
authorDavid Dykstra <dwd@samba.org>
Wed, 10 Feb 1999 18:44:25 +0000 (18:44 +0000)
committerDavid Dykstra <dwd@samba.org>
Wed, 10 Feb 1999 18:44:25 +0000 (18:44 +0000)
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.

receiver.c

index e7a164b..378364c 100644 (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);