X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/858d45f1601354a91913c201ecd15e1bbcb28ba6..565a340b0a275faeff7b434ccf8bab98ff0d073d:/rsync.c diff --git a/rsync.c b/rsync.c index 9772b742..292e5186 100644 --- a/rsync.c +++ b/rsync.c @@ -166,15 +166,19 @@ int read_ndx_and_attrs(int f_in, int *iflag_ptr, uchar *type_ptr, if (ndx < 0 || ndx >= dir_flist->count) { ndx = NDX_FLIST_OFFSET - ndx; rprintf(FERROR, - "Invalid dir index: %d (%d - %d)\n", - ndx, NDX_FLIST_OFFSET, - NDX_FLIST_OFFSET - dir_flist->count); + "[%s] Invalid dir index: %d (%d - %d)\n", + who_am_i(), ndx, NDX_FLIST_OFFSET, + NDX_FLIST_OFFSET - dir_flist->count + 1); exit_cleanup(RERR_PROTOCOL); } /* Send everything read from f_in to msg_fd_out. */ send_msg_int(MSG_FLIST, ndx); start_flist_forward(f_in); + if (verbose > 3) { + rprintf(FINFO, "[%s] receiving flist for dir %d\n", + who_am_i(), ndx); + } flist = recv_file_list(f_in); flist->parent_ndx = ndx; stop_flist_forward();