diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-17 15:06:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-17 15:07:20 +0200 |
commit | 219c0fbea9d344bc9c7fff28f5a6a4c025de9a91 (patch) | |
tree | 99e6c463058ce378acab7ac8f47cabc5aa4a7c6a /Kernel/Syscalls | |
parent | 8055f7a1f5e511e5e4e8c12d98f8799d8c9145eb (diff) | |
download | serenity-219c0fbea9d344bc9c7fff28f5a6a4c025de9a91.zip |
Kernel: Unbreak sys$pledge()
We were dropping all the incoming pledge promise strings and parsing
"" instead.
Fixes #3519.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/pledge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/pledge.cpp b/Kernel/Syscalls/pledge.cpp index e90e7eefea..a55cf68231 100644 --- a/Kernel/Syscalls/pledge.cpp +++ b/Kernel/Syscalls/pledge.cpp @@ -40,7 +40,7 @@ int Process::sys$pledge(Userspace<const Syscall::SC_pledge_params*> user_params) String promises; if (params.promises.characters) { - auto promises = copy_string_from_user(params.promises); + promises = copy_string_from_user(params.promises); if (promises.is_null()) return -EFAULT; } |