Because of the following checks:
|
if file_type == types::Filetype::RegularFile || file_type == types::Filetype::Directory { |
|
if file_type == types::Filetype::RegularFile || file_type == types::Filetype::Directory { |
And the fact that an OsOther is used here:
|
let handle = OsOther::try_from(f)?; |
It is impossible since #1561, to replace stdin/stdout/stderr with a File descriptor pointing to a file.
I had tried fixing this issue (#1839) by simply replacing OsOther by OsFile, but obviously, this cannot work as other kinds of fd should also be supported.
What would be the course of action to fix this issue? Allowing OsOther to take a file?
Because of the following checks:
wasmtime/crates/wasi-common/src/sys/unix/osother.rs
Line 16 in 4bb5894
wasmtime/crates/wasi-common/src/sys/windows/osother.rs
Line 16 in 4bb5894
And the fact that an OsOther is used here:
wasmtime/crates/wasi-common/src/ctx.rs
Line 372 in 4bb5894
It is impossible since #1561, to replace stdin/stdout/stderr with a File descriptor pointing to a file.
I had tried fixing this issue (#1839) by simply replacing OsOther by OsFile, but obviously, this cannot work as other kinds of fd should also be supported.
What would be the course of action to fix this issue? Allowing OsOther to take a file?