From 31f365ddca99aafff130f144cf28c15c0ec24835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Vouillon?= Date: Wed, 12 Feb 2025 15:33:43 +0100 Subject: [PATCH] win: access should fail with EACCES, not EPERM See https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html --- src/win/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/fs.c b/src/win/fs.c index a85695b2f..91fb60057 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -2118,7 +2118,7 @@ static void fs__access(uv_fs_t* req) { (attr & FILE_ATTRIBUTE_DIRECTORY)) { SET_REQ_RESULT(req, 0); } else { - SET_REQ_WIN32_ERROR(req, UV_EPERM); + SET_REQ_WIN32_ERROR(req, UV_EACCES); } }