From 1c92e6ee9d1f686f20f37445150d63ae474b7e9b Mon Sep 17 00:00:00 2001 From: MacDue Date: Sun, 5 Feb 2023 21:21:54 +0000 Subject: [PATCH] Ladybird: Don't overwrite argv[0] in spawn_helper_process() This is already set correctly at the caller. --- Ladybird/HelperProcess.cpp | 1 - Ladybird/WebContentView.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Ladybird/HelperProcess.cpp b/Ladybird/HelperProcess.cpp index b3e12bcbe40..f5a8ca9873f 100644 --- a/Ladybird/HelperProcess.cpp +++ b/Ladybird/HelperProcess.cpp @@ -15,7 +15,6 @@ ErrorOr spawn_helper_process(StringView process_name, Span arg VERIFY(!paths.is_empty()); ErrorOr result; for (auto const& path : paths) { - arguments[0] = path.bytes_as_string_view(); result = Core::System::exec(path, arguments, search_in_path, environment); if (!result.is_error()) break; diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index df7dab4ea3d..d6d9c7ef46d 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -581,7 +581,7 @@ void WebContentView::create_client() auto webcontent_fd_passing_socket_string = DeprecatedString::number(wc_fd_passing_fd); - Vector arguments { + Vector arguments { "WebContent"sv, "--webcontent-fd-passing-socket"sv, webcontent_fd_passing_socket_string