diff options
author | 2011-04-10 15:49:22 +0100 | |
---|---|---|
committer | 2011-04-10 15:49:22 +0100 | |
commit | aa47e5f789d6467037e341e9667547fcc50064ec (patch) | |
tree | 3352f94ad9ac1b23e487fd956220b973bb304a0f | |
parent | a39c5c7060cec7e7f35599e6156f35bff628a0f8 (diff) | |
download | paludis-aa47e5f789d6467037e341e9667547fcc50064ec.tar.gz paludis-aa47e5f789d6467037e341e9667547fcc50064ec.tar.xz |
Set archive sizes explicitly
-rw-r--r-- | paludis/tar_extras.cc | 1 |
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"); |