mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
Remove test if dest file exist on path_rename wasi syscall (for #3228)
This commit is contained in:
@@ -2657,18 +2657,6 @@ pub fn path_rename<M: MemorySize>(
|
||||
source_path.to_str().as_ref().unwrap(),
|
||||
true
|
||||
));
|
||||
if state
|
||||
.fs
|
||||
.get_inode_at_path(
|
||||
inodes.deref_mut(),
|
||||
new_fd,
|
||||
target_path.to_str().as_ref().unwrap(),
|
||||
true,
|
||||
)
|
||||
.is_ok()
|
||||
{
|
||||
return Errno::Exist;
|
||||
}
|
||||
let (source_parent_inode, source_entry_name) =
|
||||
wasi_try!(state
|
||||
.fs
|
||||
|
||||
Reference in New Issue
Block a user