1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext
Filip Stevanovic 8fc4796ed5
fix(ext/node): Fix fs.access/fs.promises.access with X_OK mode parameter on Windows (#27407)
- Fixes an issue on Windows where the `fs.constants.X_OK` flag caused
`fs.access` and `fs.promises.access` to incorrectly throw a "permission
denied" error
- Introduced formatting changes due to the formatting tool
- Fixed the issue by always removing the `X_OK` bit from the mode
variable m (not sure if it's necessary to check for the presence of it
in the `mode` param first?)
- Updated unit tests to handle the mentioned constant
- `X_OK` bit is ignored in the Node implementation and should behave
like `F_OK`

fs constants Node documentation:
https://nodejs.org/api/fs.html#fsconstants

fixes https://github.com/denoland/deno/issues/27405
2024-12-18 14:52:37 -08:00
..
broadcast_channel chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
cache chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
canvas chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
console chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
cron chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
crypto chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
fetch fix(ext/fetch): retry some http/2 errors (#27417) 2024-12-18 23:04:29 +01:00
ffi chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
fs chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
http chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
io chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
kv fix(ext/fetch): retry some http/2 errors (#27417) 2024-12-18 23:04:29 +01:00
napi chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
net chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
node fix(ext/node): Fix fs.access/fs.promises.access with X_OK mode parameter on Windows (#27407) 2024-12-18 14:52:37 -08:00
telemetry chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
tls chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
url chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
web chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
webgpu chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
webidl chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
websocket chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00
webstorage chore: release "deno_*" crates (#27402) 2024-12-17 17:03:58 +01:00