From b7b46e6df68c4d4b505b101ee27a60fe75ed8c58 Mon Sep 17 00:00:00 2001 From: Bryce Vandegrift Date: Sat, 18 Jan 2025 14:21:12 -0500 Subject: [PATCH] std.posix: Fix errno 13 when writing to file --- lib/std/posix.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/posix.zig b/lib/std/posix.zig index f99875437d81..d176eecaa58c 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -1269,6 +1269,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize { .FBIG => return error.FileTooBig, .IO => return error.InputOutput, .NOSPC => return error.NoSpaceLeft, + .ACCES => return error.AccessDenied, .PERM => return error.AccessDenied, .PIPE => return error.BrokenPipe, .CONNRESET => return error.ConnectionResetByPeer,