mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:07:45 +00:00
Kernel: Convert Process::get_syscall_path_argument() to KString
This API now returns a KResultOr<NonnullOwnPtr<KString>> and allocation failures should be propagated everywhere nicely. :^)
This commit is contained in:
parent
66f3ec687b
commit
1123af361d
25 changed files with 42 additions and 42 deletions
|
@ -22,7 +22,7 @@ KResultOr<int> Process::sys$rename(Userspace<const Syscall::SC_rename_params*> u
|
|||
auto new_path = get_syscall_path_argument(params.new_path);
|
||||
if (new_path.is_error())
|
||||
return new_path.error();
|
||||
return VFS::the().rename(old_path.value(), new_path.value(), current_directory());
|
||||
return VFS::the().rename(old_path.value()->view(), new_path.value()->view(), current_directory());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue