wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX and WASI
https://wasmer.io
MIT License
19.04k stars 814 forks source link

Fix handling of the root dir in `path_create_directory` and `get_inode_at_path_inner` #5237

Closed Arshia001 closed 1 week ago

Arshia001 commented 1 week ago

This fixes creating a directory, renaming it and then creating a directory with the same name again, which would previously fail.

This PR also includes a fix to correctly set the name of an InodeVal when renaming. The wrong value was not observable outside of preopens AFAICT, but having the correct value is, at the very least, future-proof.