aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 15:49:22 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 15:49:22 +0100
commitaa47e5f789d6467037e341e9667547fcc50064ec (patch)
tree3352f94ad9ac1b23e487fd956220b973bb304a0f
parenta39c5c7060cec7e7f35599e6156f35bff628a0f8 (diff)
downloadpaludis-aa47e5f789d6467037e341e9667547fcc50064ec.tar.gz
paludis-aa47e5f789d6467037e341e9667547fcc50064ec.tar.xz
Set archive sizes explicitly
-rw-r--r--paludis/tar_extras.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/paludis/tar_extras.cc b/paludis/tar_extras.cc
index bd4a4f9..00f8603 100644
--- a/paludis/tar_extras.cc
+++ b/paludis/tar_extras.cc
@@ -112,6 +112,7 @@ paludis_tar_extras_add_sym(PaludisTarExtras * const extras, const std::string &
archive_entry_copy_pathname(entry, path.c_str());
archive_entry_copy_stat(entry, &st);
archive_entry_copy_symlink(entry, dest.c_str());
+ archive_entry_set_size(entry, dest.length());
if (ARCHIVE_OK != archive_write_header(extras->archive, entry))
throw MergerError("archive_write_header failed");