aboutsummaryrefslogtreecommitdiff
path: root/lib/std/zon
diff options
context:
space:
mode:
authorPat Tullmann <pat.github@tullmann.org>2025-02-18 17:04:19 -0800
committerAlex Rønne Petersen <alex@alexrp.com>2025-02-21 07:29:15 +0100
commit8d9bb9746165abf067851f490cfea8c49fbd59ea (patch)
tree44fb283773dcc88f532ead40be9ac20cf9c242d5 /lib/std/zon
parenta8d3760c5bc31ed114516c89f31d9107b803a6b7 (diff)
downloadzig-8d9bb9746165abf067851f490cfea8c49fbd59ea.tar.gz
zig-8d9bb9746165abf067851f490cfea8c49fbd59ea.zip
posix: access/accessZ/faccessat/faccessatZ can return AccessDenied or PermissionDenied
`EACCES` is returned if the file mode bit (i.e., user/group/other rwx bits) disallow access. `EPERM` is returned if something else denies access (immutable bit, SELinux, capabilities, etc). This somewhat subtle no-access distinction is part of POSIX. For now map both to `error.PermissionDenied` to keep the error signature unchanged. See duopoly. This PR is effecitvely an update/simplification of PR #19193. Tested locally with an immutable file. Fixes #22733 and #19162.
Diffstat (limited to 'lib/std/zon')
0 files changed, 0 insertions, 0 deletions