From 974dcb304c57fc5c1f4088f19856c4941c15c90a Mon Sep 17 00:00:00 2001
From: licihua <licihua@huawei.com>
Date: Thu, 20 Oct 2022 20:33:29 +0800
Subject: [PATCH 04/22] 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 3f8fa22..f5c79ba 100644
--- a/lib/rpmtriggers.c
+++ b/lib/rpmtriggers.c
@@ -433,7 +433,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);
-- 
2.26.2

