| author | |
| committer | |
| log | 7798af74614af595390130b364817626603be21e |
| tree | 673eae57056242a83d1971af16b926b942528b6c |
| parent | 571b817abccbb47fef9b562327c1fbb342f06bb3 |
| signature |
2 files changed, 4 insertions(+), 2 deletions(-)
lib/std/fs/test.zig+2-2| ... | ... | @@ -446,8 +446,8 @@ test "file operations on directories" { |
| 446 | 446 | try testing.expectError(error.IsDir, tmp_dir.dir.createFile(test_dir_name, .{})); |
| 447 | 447 | try testing.expectError(error.IsDir, tmp_dir.dir.deleteFile(test_dir_name)); |
| 448 | 448 | switch (builtin.os.tag) { |
| 449 | // NetBSD does not error when reading a directory. | |
| 450 | .netbsd => {}, | |
| 449 | // no error when reading a directory. | |
| 450 | .dragonfly, .netbsd => {}, | |
| 451 | 451 | // Currently, WASI will return error.Unexpected (via ENOTCAPABLE) when attempting fd_read on a directory handle. |
| 452 | 452 | // TODO: Re-enable on WASI once https://github.com/bytecodealliance/wasmtime/issues/1935 is resolved. |
| 453 | 453 | .wasi => {}, |
lib/std/os.zig+2| ... | ... | @@ -2696,6 +2696,8 @@ pub fn mkdiratZ(dir_fd: fd_t, sub_dir_path: [*:0]const u8, mode: u32) MakeDirErr |
| 2696 | 2696 | .NOSPC => return error.NoSpaceLeft, |
| 2697 | 2697 | .NOTDIR => return error.NotDir, |
| 2698 | 2698 | .ROFS => return error.ReadOnlyFileSystem, |
| 2699 | // dragonfly: when dir_fd is unlinked from filesystem | |
| 2700 | .NOTCONN => return error.FileNotFound, | |
| 2699 | 2701 | else => |err| return unexpectedErrno(err), |
| 2700 | 2702 | } |
| 2701 | 2703 | } |