Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If we get an ndx that is 1 entry prior to an incremental flist's
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
4b9f60e
..
a1486b1
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-53,7
+53,7
@@
extern struct stats stats;
extern char *tmpdir;
extern char *partial_dir;
extern char *basis_dir[];
extern char *tmpdir;
extern char *partial_dir;
extern char *basis_dir[];
-extern struct file_list *cur_flist, *first_flist;
+extern struct file_list *cur_flist, *first_flist
, *dir_flist
;
extern struct filter_list_struct server_filter_list;
static struct bitbag *delayed_bits = NULL;
extern struct filter_list_struct server_filter_list;
static struct bitbag *delayed_bits = NULL;
@@
-392,7
+392,10
@@
int recv_files(int f_in, char *local_name)
continue;
}
continue;
}
- file = cur_flist->files[ndx - cur_flist->ndx_start];
+ if (ndx - cur_flist->ndx_start >= 0)
+ file = cur_flist->files[ndx - cur_flist->ndx_start];
+ else
+ file = dir_flist->files[cur_flist->parent_ndx];
fname = local_name ? local_name : f_name(file, fbuf);
if (verbose > 2)
fname = local_name ? local_name : f_name(file, fbuf);
if (verbose > 2)