Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions wasmtime-wasi/sandboxed-system-primitives/src/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,7 @@ __wasi_errno_t wasmtime_ssp_path_rename(
path_put(&old_pa);
path_put(&new_pa);
if (ret < 0) {
// Linux returns EBUSY in cases where EINVAL would be more suited.
return errno == EBUSY ? __WASI_EINVAL : convert_errno(errno);
return convert_errno(errno);
}
return 0;
}
Expand Down