Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37771733
en ru br
Репозитории ALT

Группа :: Система/Основа
Пакет: man-db

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0003-catman-Use-PATH-env.patch
Скачать


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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin