1From a8fe7a7a2e41c9f127ed26407d57076babcb89e8 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 20 Jan 2017 13:32:06 +0200
4Subject: [PATCH] Do not reset the PATH environment variable before running
5 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
15diff --git a/lib/rpmscript.c b/lib/rpmscript.c
16index 57689bb68..7b7e26606 100644
17--- 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,
20 	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
28