Don't allow a preopened file descriptor to be renamed over.
This is consistent with fd_close's behavior, and is likely temporary until other options are designed.
This commit is contained in:
@@ -564,6 +564,7 @@ __wasi_errno_t wasmtime_ssp_fd_read(
|
||||
__wasi_errno_t wasmtime_ssp_fd_renumber(
|
||||
#if !defined(WASMTIME_SSP_STATIC_CURFDS)
|
||||
struct fd_table *curfds,
|
||||
struct fd_prestats *prestats,
|
||||
#endif
|
||||
__wasi_fd_t from,
|
||||
__wasi_fd_t to
|
||||
|
||||
Reference in New Issue
Block a user