Commit e4d5706957

Bryce Vandegrift <bryce@brycevandegrift.xyz>
2025-01-18 20:21:12
std.posix: Fix errno 13 when writing to file
1 parent 160445e
Changed files (1)
lib
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,