Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37385007
en ru br
ALT Linux repositórios
S:2.11.2-alt1

Group :: Sistema/Base
RPM: man-db

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0003-catman-Use-PATH-env.patch
Download


From 5eea59797ccf6b537ca2b8b83957504860494d77 Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Tue, 2 Aug 2022 15:19:37 +0300
Subject: catman: Use PATH env
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
---
 src/catman.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/src/catman.c b/src/catman.c
index e421d214..57c81ab7 100644
--- a/src/catman.c
+++ b/src/catman.c
@@ -236,10 +236,15 @@ static int parse_for_sec (MYDBM_FILE dbf,
 	size_t arg_size, initial_bit;
 	bool message = true;
 	int first_arg;
+	char *env_path;
 
 	basecmd = pipecmd_new (MAN);
 	pipecmd_clearenv (basecmd);
 
+	env_path = getenv("PATH");
+	if (env_path)
+		pipecmd_setenv(basecmd, "PATH", env_path);
+
 	/* As we supply a NULL environment to save precious execve() space,
 	   we must also supply a locale if necessary */
 	if (locale) {
-- 
2.25.4
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009