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/mknod.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/mknod.cpp')
-rw-r--r-- | Kernel/Syscalls/mknod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/mknod.cpp b/Kernel/Syscalls/mknod.cpp index d354089b4a..5d3861c341 100644 --- a/Kernel/Syscalls/mknod.cpp +++ b/Kernel/Syscalls/mknod.cpp @@ -21,7 +21,7 @@ KResultOr<int> Process::sys$mknod(Userspace<const Syscall::SC_mknod_params*> use auto path = get_syscall_path_argument(params.path); if (path.is_error()) return path.error(); - return VFS::the().mknod(path.value(), params.mode & ~umask(), params.dev, current_directory()); + return VFS::the().mknod(path.value()->view(), params.mode & ~umask(), params.dev, current_directory()); } } |