Skip to content

Commit

Permalink
Merge pull request NixOS#9557 from bryanhonof/bryanhonof.fix-apple-do…
Browse files Browse the repository at this point in the history
…uble-shenanigans

Add option to libarchive so it behaves correctly

(cherry picked from commit c3827ff)
Change-Id: Ib0f928851093f4c644bac071d1c8f8aeec803198
  • Loading branch information
eldritch horrors committed Mar 4, 2024
1 parent bc32950 commit dd2926f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libutil/tarfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ TarArchive::TarArchive(Source & source, bool raw) : buffer(65536)
archive_read_support_format_raw(archive);
archive_read_support_format_empty(archive);
}
archive_read_set_option(archive, NULL, "mac-ext", NULL);
check(archive_read_open(archive, (void *)this, callback_open, callback_read, callback_close), "Failed to open archive (%s)");
}

Expand All @@ -62,6 +63,7 @@ TarArchive::TarArchive(const Path & path)

archive_read_support_filter_all(archive);
archive_read_support_format_all(archive);
archive_read_set_option(archive, NULL, "mac-ext", NULL);
check(archive_read_open_filename(archive, path.c_str(), 16384), "failed to open archive: %s");
}

Expand Down

0 comments on commit dd2926f

Please sign in to comment.