mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 15:30:09 +00:00
Kernel: Also move()
the shebang path in execve
This commit is contained in:
parent
4faff69974
commit
26250779d1
Notes:
sideshowbarker
2024-07-18 12:17:47 +09:00
Author: https://github.com/gmta
Commit: 26250779d1
Pull-request: https://github.com/SerenityOS/serenity/pull/8039
1 changed files with 1 additions and 1 deletions
|
@ -851,7 +851,7 @@ KResult Process::exec(String path, Vector<String> arguments, Vector<String> envi
|
||||||
auto shebang_path = shebang_words.first();
|
auto shebang_path = shebang_words.first();
|
||||||
if (!arguments.try_prepend(move(shebang_words)))
|
if (!arguments.try_prepend(move(shebang_words)))
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
return exec(shebang_path, move(arguments), move(environment), ++recursion_depth);
|
return exec(move(shebang_path), move(arguments), move(environment), ++recursion_depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
// #2) ELF32 for i386
|
// #2) ELF32 for i386
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue