X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/130b4ae4475ec2458e8d33d192e95f52718829be..1ff5450d31ee81523f5af44acfc4556e5aa91036:/flist.c diff --git a/flist.c b/flist.c index d3c07edc..9ebed255 100644 --- a/flist.c +++ b/flist.c @@ -513,7 +513,7 @@ static void send_directory(int f,struct file_list *flist,char *dir) d = opendir(dir); if (!d) { io_error = 1; - rprintf(FERROR,"%s: %s\n", + rprintf(FERROR,"opendir(%s): %s\n", dir,strerror(errno)); return; } @@ -625,8 +625,11 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) strlcpy(lastpath, fname, sizeof(lastpath)-1); *p = '/'; for (p=fname+1; (p=strchr(p,'/')); p++) { + int copy_links_saved = copy_links; *p = 0; + copy_links = 0; send_file_name(f, flist, fname, 0, 0); + copy_links = copy_links_saved; *p = '/'; } } else {