summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-13 17:20:35 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-13 21:19:51 +0200
commit26250779d1ff5d583056444d67e585c24450c2c0 (patch)
treef3cae4ce0049b7da4f8a7257845c157f474b5b01
parent4faff699747dfd6953daa69812f0752bbf2589b1 (diff)
downloadserenity-26250779d1ff5d583056444d67e585c24450c2c0.zip
Kernel: Also `move()` the shebang path in execve
-rw-r--r--Kernel/Syscalls/execve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp
index 73a15931d1..d5714eef1f 100644
--- a/Kernel/Syscalls/execve.cpp
+++ b/Kernel/Syscalls/execve.cpp
@@ -851,7 +851,7 @@ KResult Process::exec(String path, Vector<String> arguments, Vector<String> envi
auto shebang_path = shebang_words.first();
if (!arguments.try_prepend(move(shebang_words)))
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