Skip to content

Commit

Permalink
Try changing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 8, 2024
1 parent 0ebf430 commit e2e6fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Zip/Zip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2e6fe5

Please sign in to comment.