Skip to content

Commit 6956a22

Browse files
committed
temporary fix: files can not be opened from network shares, see cjwl#5
1 parent a2c28c2 commit 6956a22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Foundation/platform_windows/NSFileManager_win32.m

+5
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,14 @@ -(NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error
645645
}
646646
}
647647
}
648+
/* FIXME: GetFileSecurityW(path, OWNER_SECURITY_INFORMATION, ...) retunrs for files on network
649+
shares on Windows 7 HP 32bit always 0, and because of this the present function would
650+
returns nil below. So files on network shares could not be accessed. See:
651+
https://github.com/cjwl/cocotron/issues/5
648652
} else {
649653
// TODO: set error
650654
return nil;
655+
*/
651656
}
652657

653658
[result setObject:fileType forKey:NSFileType];

0 commit comments

Comments
 (0)