On Fri, 1 Apr 2011 18:52:54 +0400
Yevgeniy Tumanov <zhenya....@gmail.com> wrote:
> I can test pax archives, I have 100 % reproduction

Could you give git master a try please?

Or if that's not possible, the attached patch includes what I think
might be the fix, but doesn't include test cases for it (since master's
using Google's test framework rather than our own, so it's not clean).

-- 
Ciaran McCreesh
From 36c605c0561b5a0ff369e0d3265ab39ebef3d373 Mon Sep 17 00:00:00 2001
From: Ciaran McCreesh <ciaran.mccre...@googlemail.com>
Date: Sun, 10 Apr 2011 15:49:22 +0100
Subject: [PATCH] Set archive sizes explicitly

---
 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 8ec734f..94df6a9 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");
 
-- 
1.7.4.3

Attachment: signature.asc
Description: PGP signature

_______________________________________________
paludis-user mailing list
paludis-user@lists.pioto.org
http://lists.pioto.org/mailman/listinfo/paludis-user

Reply via email to