Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetFileSecurityW(path, OWNER_SECURITY_INFORMATION, ...) on network shares #5

Open
cyclaero opened this issue Sep 4, 2015 · 0 comments

Comments

@cyclaero
Copy link
Contributor

cyclaero commented Sep 4, 2015

The method -[NSFileManager attributesOfItemAtPath::] in file Foundation/platform_windows/NSFileManager_win32.m on line 604 does call GetFileSecurityW(path, OWNER_SECURITY_INFORMATION, ...), and on Windows 7 HP 32bit it returns always 0 for files on network shares, which prevents my application opening files from said shares.

Is it really necessary to cancel file opening because of this? My application doesn't use the OWNER_SECURITY_INFORMATION anyway. My hot fix is, to fall through to normal operation (removed lines 648-650), and by this way, files on network shares can be opened successfully.

If there is a better solution, please let know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant