| ... | @@ -1676,10 +1676,8 @@ pub fn openatWasi( | ... | @@ -1676,10 +1676,8 @@ pub fn openatWasi( |
| 1676 | .INTR => continue, | 1676 | .INTR => continue, |
| 1677 | | 1677 | |
| 1678 | .FAULT => unreachable, | 1678 | .FAULT => unreachable, |
| 1679 | // FIXME: It is worth looking into returning a `error.BadPathName` | 1679 | // Provides INVAL with a linux host on a bad path name, but NOENT on Windows |
| 1680 | // here if wasi follows other posix behavior | 1680 | .INVAL => return error.BadPathName, |
| 1681 | // see: https://github.com/ziglang/zig/issues/15607 | | |
| 1682 | .INVAL => unreachable, | | |
| 1683 | .BADF => unreachable, | 1681 | .BADF => unreachable, |
| 1684 | .ACCES => return error.AccessDenied, | 1682 | .ACCES => return error.AccessDenied, |
| 1685 | .FBIG => return error.FileTooBig, | 1683 | .FBIG => return error.FileTooBig, |