Skip to content

Commit 8fa17ed

Browse files
committed
FIX: Wrong constants.
1 parent caddcd4 commit 8fa17ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Foundation/NSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
461461
#if os(Windows)
462462
let createMode = Int(ucrt.S_IREAD | ucrt.S_IWRITE)
463463
#else
464-
let createMode = Int(S_IREAD | S_IWRITE | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
464+
let createMode = Int(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
465465
#endif
466466
guard let fh = FileHandle(path: path, flags: flags, createMode: createMode) else {
467467
throw _NSErrorWithErrno(errno, reading: false, path: path)

0 commit comments

Comments
 (0)