commit e4d570695777af643e375343a904a024250de98d (tree)
parent 160445ef316f76dfddfa17b11c4919a3e14f486d
Author: Bryce Vandegrift <bryce@brycevandegrift.xyz>
Date: Sat, 18 Jan 2025 14:21:12 -0500
std.posix: Fix errno 13 when writing to file
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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,