git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44f9a1
)
cosmetic fix.
author
Andrew Tridgell
<tridge@samba.org>
Sat, 30 May 1998 02:03:29 +0000
(
02:03
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 30 May 1998 02:03:29 +0000
(
02:03
+0000)
reset offset to 0 at the start of each loop so the filenames get
printed correctly when sending directories followed by local names.
rsync.c
patch
|
blob
|
history
diff --git
a/rsync.c
b/rsync.c
index b61128b1ee59c30329b599b4d9168585a274acf9..bb19d4fce24c30f7bea5fd08f99dd60088fcf44a 100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-962,7
+962,6
@@
void 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)
rprintf(FINFO,"send_files starting\n");
@@
-970,6
+969,8
@@
void send_files(struct file_list *flist,int f_out,int f_in)
setup_readbuffer(f_in);
while (1) {
+ int offset=0;
+
i = read_int(f_in);
if (i == -1) {
if (phase==0 && remote_version >= 13) {