blob: 318f65ed375b04ffb3e02752e50e885282e38536 [file] [log] [blame]
Patrick Williams73bd93f2024-02-20 08:07:48 -06001From 25beba1efc31901a3bb0b1b6f0604d6583dc0513 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>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012---
13 lib/rpmscript.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
Patrick Williams73bd93f2024-02-20 08:07:48 -060016diff --git a/lib/rpmscript.c b/lib/rpmscript.c
17index 36e37cf77..37ada014c 100644
18--- a/lib/rpmscript.c
19+++ b/lib/rpmscript.c
20@@ -252,7 +252,7 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes,
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 if (ipath && ipath[5] != '%')
22 path = ipath;
23
24- xx = setenv("PATH", path, 1);
25+ //xx = setenv("PATH", path, 1);
26 free(ipath);
27 }
28