X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7308bd66e0d5e5d2d04e41b0052879b4f3283109..7796395a0aaa485ef4aa6e2dea1023ee3a273d36:/rsync.c diff --git a/rsync.c b/rsync.c index 45604551..16f80ed5 100644 --- a/rsync.c +++ b/rsync.c @@ -879,6 +879,7 @@ off_t send_files(struct file_list *flist,int f_out,int f_in) int i; struct file_struct *file; int phase = 0; + int offset=0; if (verbose > 2) fprintf(FERROR,"send_files starting\n"); @@ -912,6 +913,7 @@ off_t send_files(struct file_list *flist,int f_out,int f_in) return -1; } strcat(fname,"/"); + offset = strlen(file->basedir)+1; } strncat(fname,f_name(file),MAXPATHLEN-strlen(fname)); @@ -967,7 +969,7 @@ off_t send_files(struct file_list *flist,int f_out,int f_in) fprintf(FERROR,"calling match_sums %s\n",fname); if (!am_server && verbose) - printf("%s\n",fname); + printf("%s\n",fname+offset); match_sums(f_out,s,buf,st.st_size); write_flush(f_out);