Skip to content

Commit

Permalink
treat errno(6) (NXIO) as expected error in openatZ
Browse files Browse the repository at this point in the history
  • Loading branch information
bfreis committed Nov 13, 2024
1 parent bfcf18c commit 4c98620
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 @@ -1817,6 +1817,7 @@ pub fn openatZ(dir_fd: fd_t, file_path: [*:0]const u8, flags: O, mode: mode_t) O
.OPNOTSUPP => return error.FileLocksNotSupported,
.AGAIN => return error.WouldBlock,
.TXTBSY => return error.FileBusy,
.NXIO => return error.DeviceNotConfigured,
.ILSEQ => |err| if (native_os == .wasi)
return error.InvalidUtf8
else
Expand Down

0 comments on commit 4c98620

Please sign in to comment.