1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Kernel: Unbreak sys$pledge()

We were dropping all the incoming pledge promise strings and parsing
"" instead.

Fixes #3519.
This commit is contained in:
Andreas Kling 2020-09-17 15:06:26 +02:00
parent 8055f7a1f5
commit 219c0fbea9

View file

@ -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;
}