Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From a674b9cc7af448d7c6748bc163bf37dc14a57f09 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Fri, 20 Jan 2017 13:32:06 +0200 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | Subject: [PATCH] Do not reset the PATH environment variable before running |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | scriptlets. |
| 6 | |
| 7 | We add lots of native stuff into it and scriptlets rely on that. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [oe-core specific] |
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | --- |
| 13 | lib/rpmscript.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 16 | Index: git/lib/rpmscript.c |
| 17 | =================================================================== |
| 18 | --- git.orig/lib/rpmscript.c |
| 19 | +++ git/lib/rpmscript.c |
| 20 | @@ -231,7 +231,7 @@ static void doScriptExec(ARGV_const_t ar |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | 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 | |