authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-16 17:22:24-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-16 17:22:24-07:00
logf1a9344ffeaa9b449eb111a112df33c845a1210c
tree269c5acf2334c88898a414c1ae8b3ccce0fbedc7
parentb171a6f25d5257f615b6369c11f8307dcf076c0d

std.fs.openDir: handle OBJECT_NAME_INVALID


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/fs.zig+1-1
......@@ -1803,7 +1803,7 @@ pub const Dir = struct {
18031803 );
18041804 switch (rc) {
18051805 .SUCCESS => return result,
1806 .OBJECT_NAME_INVALID => unreachable,
1806 .OBJECT_NAME_INVALID => return error.BadPathName,
18071807 .OBJECT_NAME_NOT_FOUND => return error.FileNotFound,
18081808 .OBJECT_PATH_NOT_FOUND => return error.FileNotFound,
18091809 .NOT_A_DIRECTORY => return error.NotDir,