aboutsummaryrefslogtreecommitdiff
path: root/paludis/tar_extras.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/tar_extras.cc')
-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 bd4a4f9a9..00f860334 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");