diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2025-02-18 17:18:03 -0800 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-03-24 16:20:45 +0100 |
| commit | 14c046fc0728070c575c0e849b7be649cbb2b9a0 (patch) | |
| tree | 0cd70f8ed2bd9d549609c289c3e62b93dff25dd2 /lib/std/debug.zig | |
| parent | 02373eb2a59f4a16a06460c244958e236b1c5291 (diff) | |
| download | zig-14c046fc0728070c575c0e849b7be649cbb2b9a0.tar.gz zig-14c046fc0728070c575c0e849b7be649cbb2b9a0.zip | |
lib/std: PermissionDenied/AccessDenied cleanup and fallout
This PR consistently maps .ACCES into AccessDenied and .PERM into
PermissionDenied. AccessDenied is returned if the file mode bit
(user/group/other rwx bits) disallow access (errno was `EACCES`).
PermissionDenied is returned if something else denies access (errno was
`EPERM`) (immutable bit, SELinux, capabilities, etc). This somewhat
subtle distinction is a POSIX thing.
Most of the change is updating std.posix Error Sets to contain both
errors, and then propagating the pair up through caller Error Sets.
Fixes #16782
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
