aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-12-05 17:45:29 +0000
committerWayne Davison <wayned@samba.org>2006-12-05 17:45:29 +0000
commit17026f2741b2031ab2b8a40e9078221548abea1c (patch)
tree08dbdc8916472387deceddc4fab5a6c255ea2211 /flist.c
parent112d728f4858fef5c75e0b25bf6f02af8aa5b83c (diff)
downloadandroid_external_rsync-17026f2741b2031ab2b8a40e9078221548abea1c.tar.gz
android_external_rsync-17026f2741b2031ab2b8a40e9078221548abea1c.tar.bz2
android_external_rsync-17026f2741b2031ab2b8a40e9078221548abea1c.zip
Handle the FLAG_LENGTH64 flag in unmake_file().
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/flist.c b/flist.c
index 36384de8..f163db25 100644
--- a/flist.c
+++ b/flist.c
@@ -980,10 +980,11 @@ struct file_struct *make_file(const char *fname, struct file_list *flist,
return file;
}
-/* Only called for temporary file_struct entries. */
+/* Only called for temporary file_struct entries created by make_file(). */
void unmake_file(struct file_struct *file)
{
- free(file->extras - (flist_extra_cnt - 1));
+ int extra_cnt = flist_extra_cnt - 1 + LEN64_BUMP(file);
+ free(file->extras - extra_cnt);
}
static struct file_struct *send_file_name(int f, struct file_list *flist,