summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/link.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/link.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/link.cpp')
-rw-r--r--Kernel/Syscalls/link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/link.cpp b/Kernel/Syscalls/link.cpp
index 49b05c3c17..13f8dc07d9 100644
--- a/Kernel/Syscalls/link.cpp
+++ b/Kernel/Syscalls/link.cpp
@@ -37,7 +37,7 @@ KResultOr<int> Process::sys$symlink(Userspace<const Syscall::SC_symlink_params*>
auto linkpath = get_syscall_path_argument(params.linkpath);
if (linkpath.is_error())
return linkpath.error();
- return VFS::the().symlink(target.value(), linkpath.value(), current_directory());
+ return VFS::the().symlink(target.value()->view(), linkpath.value()->view(), current_directory());
}
}