forked from libuv/libuv
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win,fs: Upgrade
fs__access()
to respond to X_OK
.
By utilizing the `AccessCheck()` ACL API, we can interrogate the filesystem for executable permissions on a particular file for the given process/user. As this operation is slightly expensive, it is only done if the user requests it by setting the `mode` parameter with `X_OK`. In particular, this implementation checks for the `FILE_GENERIC_EXECUTE` permission within the ACL entries of the given file.
- Loading branch information
1 parent
559d5d0
commit 1dcf324
Showing
1 changed file
with
130 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters