1*8460358cSPatrick WilliamsFrom 4cf76bb57d3480420e734da99a5c839ac3a9976a Mon Sep 17 00:00:00 2001
2eb8dc403SDave CobbleyFrom: Alexander Kanavin <alex.kanavin@gmail.com>
3eb8dc403SDave CobbleyDate: Fri, 20 Jan 2017 13:32:06 +0200
41a4b7ee2SBrad BishopSubject: [PATCH] Do not reset the PATH environment variable before running
5eb8dc403SDave Cobbley scriptlets.
6eb8dc403SDave Cobbley
7eb8dc403SDave CobbleyWe add lots of native stuff into it and scriptlets rely on that.
8eb8dc403SDave Cobbley
9eb8dc403SDave CobbleyUpstream-Status: Inappropriate [oe-core specific]
10eb8dc403SDave CobbleySigned-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11eb8dc403SDave Cobbley---
12eb8dc403SDave Cobbley lib/rpmscript.c | 2 +-
13eb8dc403SDave Cobbley 1 file changed, 1 insertion(+), 1 deletion(-)
14eb8dc403SDave Cobbley
1573bd93f1SPatrick Williamsdiff --git a/lib/rpmscript.c b/lib/rpmscript.c
16*8460358cSPatrick Williamsindex 060fd8124..4dc6466a8 100644
1773bd93f1SPatrick Williams--- a/lib/rpmscript.c
1873bd93f1SPatrick Williams+++ b/lib/rpmscript.c
19*8460358cSPatrick Williams@@ -251,7 +251,7 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes,
20eb8dc403SDave Cobbley 	if (ipath && ipath[5] != '%')
21eb8dc403SDave Cobbley 	    path = ipath;
22eb8dc403SDave Cobbley
23eb8dc403SDave Cobbley-	xx = setenv("PATH", path, 1);
24eb8dc403SDave Cobbley+	//xx = setenv("PATH", path, 1);
25eb8dc403SDave Cobbley 	free(ipath);
26eb8dc403SDave Cobbley     }
27eb8dc403SDave Cobbley
28