Skip to content

Commit edf50e4

Browse files
committed
Fix key's typo to NSFileGroupOwnerAccountName
The key NSFileGroupOwnerAccountId is a typo as it is later overwritten by an NSNumber on line 381. The correct constant is NSFileGroupOwnerAccountName to correctly add the String of the account's name to the dictionary.
1 parent 32799e4 commit edf50e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSFileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public class NSFileManager : NSObject {
349349
let grd = getgrgid(s.st_gid)
350350
if grd != nil && grd.memory.gr_name != nil {
351351
if let name = String.fromCString(grd.memory.gr_name) {
352-
result[NSFileGroupOwnerAccountID] = name
352+
result[NSFileGroupOwnerAccountName] = name
353353
}
354354
}
355355

0 commit comments

Comments
 (0)