X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/82ad07c4182f744c07b96a15df4572e559ed7dc8..5f4e991c7059cf7887c16bb5cacddc8fb31faf26:/sender.c diff --git a/sender.c b/sender.c index 0dff9e04..3808cda8 100644 --- a/sender.c +++ b/sender.c @@ -128,9 +128,9 @@ void successful_send(int ndx) return; file = the_file_list->files[ndx]; - if (file->dir.root) { + if (F_ROOTDIR(file)) { offset = stringjoin(fname, sizeof fname, - file->dir.root, "/", NULL); + F_ROOTDIR(file), "/", NULL); } else offset = 0; f_name(file, fname + offset); @@ -202,9 +202,9 @@ void send_files(struct file_list *flist, int f_out, int f_in) continue; file = flist->files[i]; - if (file->dir.root) { + if (F_ROOTDIR(file)) { /* N.B. We're sure that this fits, so offset is OK. */ - offset = strlcpy(fname, file->dir.root, sizeof fname); + offset = strlcpy(fname, F_ROOTDIR(file), sizeof fname); if (!offset || fname[offset-1] != '/') fname[offset++] = '/'; } else @@ -230,7 +230,7 @@ void send_files(struct file_list *flist, int f_out, int f_in) stats.current_file_index = i; stats.num_transferred_files++; - stats.total_transferred_size += file->length; + stats.total_transferred_size += F_LENGTH(file); if (!do_xfers) { /* log the transfer */ log_item(FCLIENT, file, &stats, iflags, NULL);