summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2019-10-10 12:48:24 +0300
committerPanu Matilainen <pmatilai@redhat.com>2019-11-18 12:46:29 +0200
commita39867591170ba2c9e454267cf7cae00cdc06929 (patch)
tree2e9f117e86d4f867977dd0059610848a7143823e
parent3e69a82488a6726c4c3ef259060e6d27a2101665 (diff)
downloadrpm-a39867591170ba2c9e454267cf7cae00cdc06929.tar.gz
Always execute file trigger scriptlet callbacks with owning header
This is part II of commit 6d610e9b9a906548ce44265d7f36199441ea8bca which missed one but common case where the element with matches gets passed to the callback instead of the owning one, as pointed out in RhBug:1724779. (cherry picked from commit b759eee44395bdf4abd93b2f846214ee5f5f34f1)
-rw-r--r--lib/rpmtriggers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmtriggers.c b/lib/rpmtriggers.c
index b7c76e7fc..285b2f07d 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, te, h, installPrefixes.data,
+ nerrors += runScript(ts, NULL, h, installPrefixes.data,
script, 0, -1);
rpmtdFreeData(&installPrefixes);
rpmScriptFree(script);