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/access.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/access.cpp')
-rw-r--r-- | Kernel/Syscalls/access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/access.cpp b/Kernel/Syscalls/access.cpp index 8151b40e24..98d240b632 100644 --- a/Kernel/Syscalls/access.cpp +++ b/Kernel/Syscalls/access.cpp @@ -16,7 +16,7 @@ KResultOr<int> Process::sys$access(Userspace<const char*> user_path, size_t path auto path = get_syscall_path_argument(user_path, path_length); if (path.is_error()) return path.error(); - return VFS::the().access(path.value(), mode, current_directory()); + return VFS::the().access(path.value()->view(), mode, current_directory()); } } |