Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
1009-erts-Fix-erl-man-lookup.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1009-erts-Fix-erl-man-lookup.patch of Package erlang
From 02575c975a47494c0878a611e74b24b53a8a8449 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 15 May 2024 11:55:00 +0200 Subject: [PATCH] erts: Fix erl -man lookup We cut the arguments to man at the first -- so that things in ERL_ZFLAGS don't end up as arguments to man. closes #8477 --- erts/etc/common/erlexec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c index 957e1a83da..ef29181f6b 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -722,6 +722,12 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; + for (int j = i; argv[j]; j++) { + if (strncmp(argv[j],"--",2) == 0) { + argv[j] = NULL; + break; + } + } erts_snprintf(tmpStr, sizeof(tmpStr), "%s/man", rootdir); set_env("MANPATH", tmpStr); execvp("man", argv+i); -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor