mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
Kernel: Do not return ENOENT for unresolved symbols
ENOENT means "no such file or directory", not "no such symbol". Return EINVAL instead, as we already do in other cases.
This commit is contained in:
parent
d0d13e2bf5
commit
3e1ed38d4b
2 changed files with 2 additions and 3 deletions
|
@ -4286,7 +4286,7 @@ int Process::sys$module_load(const char* user_path, size_t path_length)
|
|||
});
|
||||
|
||||
if (missing_symbols)
|
||||
return -ENOENT;
|
||||
return -EINVAL;
|
||||
|
||||
auto* text_base = section_storage_by_name.get(".text").value_or(nullptr);
|
||||
if (!text_base) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue