Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
549a3ef
)
Fixed two flist->files[first_hlink_ndx] references.
author
Wayne Davison
<wayned@samba.org>
Tue, 4 Sep 2007 07:13:01 +0000
(07:13 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 4 Sep 2007 07:13:01 +0000
(07:13 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
29d3040
..
4f3e25a
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-927,7
+927,7
@@
static struct file_struct *recv_file_entry(struct file_list *flist,
if (linkname_len) {
bp = (char*)file->basename + basename_len;
if (first_hlink_ndx >= flist->ndx_start) {
if (linkname_len) {
bp = (char*)file->basename + basename_len;
if (first_hlink_ndx >= flist->ndx_start) {
- struct file_struct *first = flist->files[first_hlink_ndx];
+ struct file_struct *first = flist->files[first_hlink_ndx
- flist->ndx_start
];
memcpy(bp, F_SYMLINK(first), linkname_len);
} else
read_sbuf(f, bp, linkname_len - 1);
memcpy(bp, F_SYMLINK(first), linkname_len);
} else
read_sbuf(f, bp, linkname_len - 1);
@@
-974,7
+974,7
@@
static struct file_struct *recv_file_entry(struct file_list *flist,
bp = tmp_sum;
}
if (first_hlink_ndx >= flist->ndx_start) {
bp = tmp_sum;
}
if (first_hlink_ndx >= flist->ndx_start) {
- struct file_struct *first = flist->files[first_hlink_ndx];
+ struct file_struct *first = flist->files[first_hlink_ndx
- flist->ndx_start
];
memcpy(bp, F_SUM(first), checksum_len);
} else
read_buf(f, bp, checksum_len);
memcpy(bp, F_SUM(first), checksum_len);
} else
read_buf(f, bp, checksum_len);