diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-10-10 12:48:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2019-10-15 13:29:18 +0300 |
commit | b759eee44395bdf4abd93b2f846214ee5f5f34f1 (patch) | |
tree | a56a48baf6fdec916f66100331c978c50efa6f95 /lib/rpmtriggers.c | |
parent | a0699a1f9b9502c75d812b4fee52dec100ad5be7 (diff) | |
download | rpm-b759eee44395bdf4abd93b2f846214ee5f5f34f1.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.
Diffstat (limited to 'lib/rpmtriggers.c')
-rw-r--r-- | lib/rpmtriggers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmtriggers.c b/lib/rpmtriggers.c index 53646a56e..fc809a65e 100644 --- a/lib/rpmtriggers.c +++ b/lib/rpmtriggers.c @@ -432,7 +432,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); |