[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Tue Nov 20 21:25:37 UTC 2018


The branch, master has been updated
       via  4aeb0932 Fix itemizing of wrong dir name on some --iconv transfers.
      from  1eb7a706 Need to mark xattr rules in get_rule_prefix().

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 4aeb093206d55c3d886cbcec062f7aa93d0b968e
Author: Wayne Davison <wayned at samba.org>
Date:   Tue Nov 20 12:45:36 2018 -0800

    Fix itemizing of wrong dir name on some --iconv transfers.
    
    Fixes bug #13492.

-----------------------------------------------------------------------

Summary of changes:
 flist.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/flist.c b/flist.c
index 499440cc..60e843cc 100644
--- a/flist.c
+++ b/flist.c
@@ -1636,6 +1636,7 @@ static void add_dirs_to_tree(int parent_ndx, struct file_list *from_flist,
 	int32 *parent_dp = parent_ndx < 0 ? NULL
 			 : F_DIR_NODE_P(dir_flist->sorted[parent_ndx]);
 
+	/* The sending side is adding entries to dir_flist in sorted order, so sorted & files are the same. */
 	flist_expand(dir_flist, dir_cnt);
 	dir_flist->sorted = dir_flist->files;
 
@@ -1970,7 +1971,7 @@ void send_extra_file_list(int f, int at_least)
 		else
 			dir_ndx = send_dir_ndx;
 		write_ndx(f, NDX_FLIST_OFFSET - dir_ndx);
-		flist->parent_ndx = dir_ndx;
+		flist->parent_ndx = send_dir_ndx; /* the sending side must remember the sorted ndx value */
 
 		send1extra(f, file, flist);
 		prev_flags = file->flags;


-- 
The rsync repository.



More information about the rsync-cvs mailing list