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/statvfs.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/statvfs.cpp')
-rw-r--r-- | Kernel/Syscalls/statvfs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/statvfs.cpp b/Kernel/Syscalls/statvfs.cpp index 2f6d4d3553..5103567e2a 100644 --- a/Kernel/Syscalls/statvfs.cpp +++ b/Kernel/Syscalls/statvfs.cpp @@ -80,7 +80,7 @@ KResultOr<int> Process::sys$statvfs(Userspace<const Syscall::SC_statvfs_params*> if (path.is_error()) return path.error(); - return do_statvfs(path.value(), params.buf); + return do_statvfs(path.value()->view(), params.buf); } KResultOr<int> Process::sys$fstatvfs(int fd, statvfs* buf) |