From 9680c3f2f8ceeddced6e91048daeb9b93abf4c8d Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Wed, 25 Mar 2020 16:57:29 +0800
Subject: [PATCH] revert always execute file trigger scriptlet callbacks with
 owning header

---
 lib/rpmtriggers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rpmtriggers.c b/lib/rpmtriggers.c
index 285b2f0..b7c76e7 100644
--- a/lib/rpmtriggers.c
+++ b/lib/rpmtriggers.c
@@ -437,7 +437,7 @@ static int runHandleTriggersInPkg(rpmts ts, rpmte te, Header h,
 	    inputFunc = (char *(*)(void *)) matchFilesNext;
 	    rpmScriptSetNextFileFunc(script, inputFunc, mfi);
 
-	    nerrors += runScript(ts, NULL, h, installPrefixes.data,
+	    nerrors += runScript(ts, te, h, installPrefixes.data,
 				script, 0, -1);
 	    rpmtdFreeData(&installPrefixes);
 	    rpmScriptFree(script);
-- 
1.8.3.1

