summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/rename.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-29 16:59:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-29 20:18:57 +0200
commit1123af361dbea6f1c3ae0289aa676233a6e9d75b (patch)
tree6ea02673365d20eca8d489082f916e30fc023e83 /Kernel/Syscalls/rename.cpp
parent66f3ec687b2b562205e91ef587e771aef33fada9 (diff)
downloadserenity-1123af361dbea6f1c3ae0289aa676233a6e9d75b.zip
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. :^)
Diffstat (limited to 'Kernel/Syscalls/rename.cpp')
-rw-r--r--Kernel/Syscalls/rename.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/rename.cpp b/Kernel/Syscalls/rename.cpp
index 22fda00580..4aaea17db2 100644
--- a/Kernel/Syscalls/rename.cpp
+++ b/Kernel/Syscalls/rename.cpp
@@ -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());
}
}