diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-29 16:59:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-29 20:18:57 +0200 |
commit | 1123af361dbea6f1c3ae0289aa676233a6e9d75b (patch) | |
tree | 6ea02673365d20eca8d489082f916e30fc023e83 /Kernel/Syscalls/readlink.cpp | |
parent | 66f3ec687b2b562205e91ef587e771aef33fada9 (diff) | |
download | serenity-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/readlink.cpp')
-rw-r--r-- | Kernel/Syscalls/readlink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/readlink.cpp b/Kernel/Syscalls/readlink.cpp index 0305f55174..ad331a1033 100644 --- a/Kernel/Syscalls/readlink.cpp +++ b/Kernel/Syscalls/readlink.cpp @@ -23,7 +23,7 @@ KResultOr<int> Process::sys$readlink(Userspace<const Syscall::SC_readlink_params if (path.is_error()) return path.error(); - auto result = VFS::the().open(path.value(), O_RDONLY | O_NOFOLLOW_NOERROR, 0, current_directory()); + auto result = VFS::the().open(path.value()->view(), O_RDONLY | O_NOFOLLOW_NOERROR, 0, current_directory()); if (result.is_error()) return result.error(); auto description = result.value(); |