Commit c2db5d9cd1

Bruno Reis <bfreis@gmail.com>
2024-11-14 00:44:10
treat errno(6) (NXIO) as expected error in openatZ
1 parent 1f37b70
Changed files (1)
lib
lib/std/posix.zig
@@ -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.NoDevice,
             .ILSEQ => |err| if (native_os == .wasi)
                 return error.InvalidUtf8
             else