mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Kernel: Remove an unnecessary cast in sys$execve()
This commit is contained in:
parent
9c640e67ac
commit
791b32e3c6
Notes:
sideshowbarker
2024-07-19 00:36:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/791b32e3c6d
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ KResultOr<Process::LoadResult> Process::load_elf_object(FileDescription& object_
|
|||
{
|
||||
auto& inode = *(object_description.inode());
|
||||
auto vmobject = SharedInodeVMObject::create_with_inode(inode);
|
||||
if (static_cast<const SharedInodeVMObject&>(*vmobject).writable_mappings()) {
|
||||
if (vmobject->writable_mappings()) {
|
||||
dbgln("Refusing to execute a write-mapped program");
|
||||
return KResult(-ETXTBSY);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue