blob: 328fbf86ac1fbe085d4c597a213868dd2e110ba7 [file] [log] [blame]
Patrick Williams44b3caf2024-04-12 16:51:14 -05001From a8fe7a7a2e41c9f127ed26407d57076babcb89e8 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 20 Jan 2017 13:32:06 +0200
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] Do not reset the PATH environment variable before running
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005 scriptlets.
6
7We add lots of native stuff into it and scriptlets rely on that.
8
9Upstream-Status: Inappropriate [oe-core specific]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 lib/rpmscript.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
Patrick Williams73bd93f2024-02-20 08:07:48 -060015diff --git a/lib/rpmscript.c b/lib/rpmscript.c
Patrick Williams44b3caf2024-04-12 16:51:14 -050016index 57689bb68..7b7e26606 100644
Patrick Williams73bd93f2024-02-20 08:07:48 -060017--- a/lib/rpmscript.c
18+++ b/lib/rpmscript.c
19@@ -252,7 +252,7 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes,
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 if (ipath && ipath[5] != '%')
21 path = ipath;
22
23- xx = setenv("PATH", path, 1);
24+ //xx = setenv("PATH", path, 1);
25 free(ipath);
26 }
27