We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e7b6f commit 0403c4bCopy full SHA for 0403c4b
lib/std/posix.zig
@@ -1676,10 +1676,8 @@ pub fn openatWasi(
1676
.INTR => continue,
1677
1678
.FAULT => unreachable,
1679
- // FIXME: It is worth looking into returning a `error.BadPathName`
1680
- // here if wasi follows other posix behavior
1681
- // see: https://github.com/ziglang/zig/issues/15607
1682
- .INVAL => unreachable,
+ // Provides INVAL with a linux host on a bad path name, but NOENT on Windows
+ .INVAL => return error.BadPathName,
1683
.BADF => unreachable,
1684
.ACCES => return error.AccessDenied,
1685
.FBIG => return error.FileTooBig,
0 commit comments