aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-03-25 11:21:05 +0100
committerGitHub <noreply@github.com>2025-03-25 11:21:05 +0100
commitc94d926bba9344cfab9b00b2bb418ca0e7a32b51 (patch)
tree296210af462e64e022af113095ebcd61d432994d /src
parent5bb4fef30a1b12fde3e3a20c2def301f7fd32fab (diff)
parent14c046fc0728070c575c0e849b7be649cbb2b9a0 (diff)
downloadzig-c94d926bba9344cfab9b00b2bb418ca0e7a32b51.tar.gz
zig-c94d926bba9344cfab9b00b2bb418ca0e7a32b51.zip
Merge pull request #23007 from rootbeer/posix-eaccess-eperm
lib/std: Make usage of PermissionDenied & AccessDenied consistent
Diffstat (limited to 'src')
-rw-r--r--src/DarwinPosixSpawn.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DarwinPosixSpawn.zig b/src/DarwinPosixSpawn.zig
index aaf2df6ec3..0743eb0c66 100644
--- a/src/DarwinPosixSpawn.zig
+++ b/src/DarwinPosixSpawn.zig
@@ -6,6 +6,7 @@ pub const Error = error{
InvalidFileDescriptor,
NameTooLong,
TooBig,
+ AccessDenied,
PermissionDenied,
InputOutput,
FileSystem,
@@ -188,7 +189,7 @@ pub fn spawnZ(
.@"2BIG" => return error.TooBig,
.NOMEM => return error.SystemResources,
.BADF => return error.InvalidFileDescriptor,
- .ACCES => return error.PermissionDenied,
+ .ACCES => return error.AccessDenied,
.IO => return error.InputOutput,
.LOOP => return error.FileSystem,
.NAMETOOLONG => return error.NameTooLong,