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
+2 -1
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)")