Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win,errors: remap ERROR_ACCESS_DENIED to UV_EACCES (libuv#3193)
If we try to use uv_fs_rmdir on a read-only directory on Windows, it internally calls _wrmdir, which sets _doserrno to ERROR_ACCESS_DENIED and errno to EACCES. However, ERROR_ACCESS_DENIED is mapped to UV_EPERM, so I believe it should be remapped to UV_EACCES.
- Loading branch information