Skip to content

Commit

Permalink
tart import: fix import failing due to SIGBUS (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Mar 30, 2023
1 parent ab32cb7 commit 9b26d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/tart/VMDirectory+Archive.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ extension VMDirectory {
try? decodeStream.close()
}

guard let extractStream = ArchiveStream.extractStream(extractingTo: FilePath(baseURL.path)) else {
guard let extractStream = ArchiveStream.extractStream(extractingTo: FilePath(baseURL.path),
flags: [.ignoreOperationNotPermitted]) else {
let details = Errno(rawValue: CInt(errno))

throw RuntimeError.ImportFailed("ArchiveStream.extractStream() failed: \(details)")
Expand Down

0 comments on commit 9b26d30

Please sign in to comment.