mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-02 16:28:54 +03:00
4c851792ac
Previously `std::fs::File::metadata` on wasm32-wasi would call `fd_filestat_get` to get metadata associated with fd, but that fd is opened without RIGHTS_FD_FILESTAT_GET right, so it will failed on correctly implemented WASI environment. This change instead to add the missing rights when opening an fd.