From e2e6fe55064a761af042a7ec18e10210d31205e9 Mon Sep 17 00:00:00 2001 From: Francesco Paolo Severino Date: Mon, 9 Sep 2024 00:06:03 +0200 Subject: [PATCH] Try changing permissions --- Sources/Zip/Zip.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Zip/Zip.swift b/Sources/Zip/Zip.swift index 0cc03ed0..8a1000c1 100644 --- a/Sources/Zip/Zip.swift +++ b/Sources/Zip/Zip.swift @@ -175,7 +175,7 @@ public class Zip { do { // TODO: Set permissions properly on Windows #if os(Windows) - try fileManager.setAttributes([.posixPermissions : 0o666], ofItemAtPath: fullPath) + try fileManager.setAttributes([.posixPermissions : NSNumber(value: Int16(0o600))], ofItemAtPath: fullPath) #else try fileManager.setAttributes([.posixPermissions : permissions], ofItemAtPath: fullPath) #endif