mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-05 17:49:16 +03:00
Ladybird: Don't overwrite argv[0] in spawn_helper_process()
This is already set correctly at the caller.
This commit is contained in:
parent
8483efb399
commit
1c92e6ee9d
Notes:
sideshowbarker
2024-07-17 00:37:12 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/1c92e6ee9d Pull-request: https://github.com/SerenityOS/serenity/pull/17328 Reviewed-by: https://github.com/trflynn89
@ -15,7 +15,6 @@ ErrorOr<void> spawn_helper_process(StringView process_name, Span<StringView> arg
|
|||||||
VERIFY(!paths.is_empty());
|
VERIFY(!paths.is_empty());
|
||||||
ErrorOr<void> result;
|
ErrorOr<void> result;
|
||||||
for (auto const& path : paths) {
|
for (auto const& path : paths) {
|
||||||
arguments[0] = path.bytes_as_string_view();
|
|
||||||
result = Core::System::exec(path, arguments, search_in_path, environment);
|
result = Core::System::exec(path, arguments, search_in_path, environment);
|
||||||
if (!result.is_error())
|
if (!result.is_error())
|
||||||
break;
|
break;
|
||||||
|
@ -581,7 +581,7 @@ void WebContentView::create_client()
|
|||||||
|
|
||||||
auto webcontent_fd_passing_socket_string = DeprecatedString::number(wc_fd_passing_fd);
|
auto webcontent_fd_passing_socket_string = DeprecatedString::number(wc_fd_passing_fd);
|
||||||
|
|
||||||
Vector<StringView> arguments {
|
Vector<StringView, 5> arguments {
|
||||||
"WebContent"sv,
|
"WebContent"sv,
|
||||||
"--webcontent-fd-passing-socket"sv,
|
"--webcontent-fd-passing-socket"sv,
|
||||||
webcontent_fd_passing_socket_string
|
webcontent_fd_passing_socket_string
|
||||||
|
Loading…
Reference in New Issue
Block a user