Skip to content

Commit

Permalink
fix: don't pad libarchive output, ever
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 25, 2024
1 parent d89ad6b commit e29d88d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utility/filesystem_extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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]));
}

Expand Down

0 comments on commit e29d88d

Please sign in to comment.