mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-30 09:42:04 -05:00
cosmetic fix.
reset offset to 0 at the start of each loop so the filenames get printed correctly when sending directories followed by local names.
This commit is contained in:
3
rsync.c
3
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) {
|
||||
|
||||
Reference in New Issue
Block a user