Output a -vvv(erbose) message when receiving an incremental file list.
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index d7f78f1..3982662 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -1954,7 +1954,7 @@ struct file_list *recv_file_list(int f)
 #endif
        {
                flist->sorted = flist->files;
-               if (inc_recurse) {
+               if (inc_recurse && dir_flist->count > dstart) {
                        dir_flist->sorted = dir_flist->files;
                        qsort(dir_flist->sorted + dstart, dir_flist->count - dstart,
                              sizeof (struct file_struct*), (int (*)())file_compare);
@@ -2011,6 +2011,10 @@ void recv_additional_file_list(int f)
                                NDX_FLIST_OFFSET - dir_flist->count + 1);
                        exit_cleanup(RERR_PROTOCOL);
                }
+               if (verbose > 3) {
+                       rprintf(FINFO, "[%s] receiving flist for dir %d\n",
+                               who_am_i(), ndx);
+               }
                flist = recv_file_list(f);
                flist->parent_ndx = ndx;
        }