tart import: fix import failing due to SIGBUS (#458)

This commit is contained in:
Nikolay Edigaryev 2023-03-30 15:52:48 +04:00 committed by GitHub
parent ab32cb7e60
commit 9b26d30c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)")