From e29d88dad0e9c21fb3081e7eacc72710dc86e145 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sun, 25 Aug 2024 15:08:45 +0200 Subject: [PATCH] fix: don't pad libarchive output, ever --- src/utility/filesystem_extractor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utility/filesystem_extractor.cpp b/src/utility/filesystem_extractor.cpp index 6c7e85853..b81cdef6b 100644 --- a/src/utility/filesystem_extractor.cpp +++ b/src/utility/filesystem_extractor.cpp @@ -118,6 +118,7 @@ class filesystem_extractor_ final : public filesystem_extractor::impl { a_ = ::archive_write_new(); check_result(::archive_write_set_format_by_name(a_, format.c_str())); + check_result(::archive_write_set_bytes_in_last_block(a_, 1)); #ifdef _WIN32 check_result(::archive_write_open_filename_w( @@ -147,6 +148,7 @@ class filesystem_extractor_ final : public filesystem_extractor::impl { a_ = ::archive_write_new(); check_result(::archive_write_set_format_by_name(a_, format.c_str())); + check_result(::archive_write_set_bytes_in_last_block(a_, 1)); check_result(::archive_write_open_fd(a_, pipefd_[1])); }