diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-06-13 17:20:35 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-13 21:19:51 +0200 |
commit | 26250779d1ff5d583056444d67e585c24450c2c0 (patch) | |
tree | f3cae4ce0049b7da4f8a7257845c157f474b5b01 | |
parent | 4faff699747dfd6953daa69812f0752bbf2589b1 (diff) | |
download | serenity-26250779d1ff5d583056444d67e585c24450c2c0.zip |
Kernel: Also `move()` the shebang path in execve
-rw-r--r-- | Kernel/Syscalls/execve.cpp | 2 |
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 |