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
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