summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-17 15:06:26 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-17 15:07:20 +0200
commit219c0fbea9d344bc9c7fff28f5a6a4c025de9a91 (patch)
tree99e6c463058ce378acab7ac8f47cabc5aa4a7c6a /Kernel/Syscalls
parent8055f7a1f5e511e5e4e8c12d98f8799d8c9145eb (diff)
downloadserenity-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.cpp2
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;
}