mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +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:
parent
8055f7a1f5
commit
219c0fbea9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue