Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76076c4
)
don't show basedir in printed path (a aesthetic change only)
author
Andrew Tridgell
<tridge@samba.org>
Wed, 25 Mar 1998 01:59:23 +0000
(
01:59
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 25 Mar 1998 01:59:23 +0000
(
01:59
+0000)
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
4560455
..
16f80ed
100644
(file)
--- 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);