Skip to content

Commit

Permalink
std.posix: Fix errno 13 when writing to file
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceVandegrift committed Jan 18, 2025
1 parent 3dadb8c commit b7b46e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/std/posix.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b7b46e6

Please sign in to comment.