From b139fb9f383911130336ac995cd2671662f9c963 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 3 Aug 2020 18:40:28 +0200 Subject: [PATCH] Kernel: Use Userspace in sys$link() and sys$symlink() --- Kernel/Process.h | 4 ++-- Kernel/Syscalls/link.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 8bcab0db08..bbb6031307 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -272,9 +272,9 @@ public: int sys$mkdir(Userspace pathname, size_t path_length, mode_t mode); clock_t sys$times(tms*); int sys$utime(Userspace pathname, size_t path_length, Userspace); - int sys$link(const Syscall::SC_link_params*); + int sys$link(Userspace); int sys$unlink(const char* pathname, size_t path_length); - int sys$symlink(const Syscall::SC_symlink_params*); + int sys$symlink(Userspace); int sys$rmdir(Userspace pathname, size_t path_length); int sys$mount(const Syscall::SC_mount_params*); int sys$umount(const char* mountpoint, size_t mountpoint_length); diff --git a/Kernel/Syscalls/link.cpp b/Kernel/Syscalls/link.cpp index bf8dfaeb51..cbb3185e03 100644 --- a/Kernel/Syscalls/link.cpp +++ b/Kernel/Syscalls/link.cpp @@ -30,7 +30,7 @@ namespace Kernel { -int Process::sys$link(const Syscall::SC_link_params* user_params) +int Process::sys$link(Userspace user_params) { REQUIRE_PROMISE(cpath); Syscall::SC_link_params params; @@ -43,7 +43,7 @@ int Process::sys$link(const Syscall::SC_link_params* user_params) return VFS::the().link(old_path, new_path, current_directory()); } -int Process::sys$symlink(const Syscall::SC_symlink_params* user_params) +int Process::sys$symlink(Userspace user_params) { REQUIRE_PROMISE(cpath); Syscall::SC_symlink_params params;