-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: document ACL limitation for fs.access on Windows #23772
Conversation
Please 👍 to fast-track |
On Windows, access-control policies (ACLs) on a directory may limit access to | ||
a file or directory. The `fs.access()` function, however, does not check the | ||
ACL and therefore may report that a path is accessible even if the ACL restricts | ||
the user from reading or writing to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add one more sentence reminding of the "not recommended" race conditions above, and how this quirk of ACLs makes it even more important to not misuse fs.access()
in the ways described.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do that in a separate PR
Landed in 6c07990 |
Fixes: #19192
Checklist