Fix per-file plugin hook regression introduced in 4.18

Commit 6dd62720fe neglected to update
rpmpluginsCallFsmFilePost() to pass the absolute path in the case
of unowned directories. Because in that case there's no rpmfi to
pass to the plugin in that case, there's simply no way for the plugin
to know what path is being manipulated. Oops.

Fixes: #2543
This commit is contained in:
Panu Matilainen 2023-06-20 10:11:20 +03:00
parent cebdb1e88a
commit 7072b2d2b9
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ static int fsmDoMkDir(rpmPlugins plugins, int dirfd, const char *dn,
}
/* Run fsm file post hook for all plugins */
rpmpluginsCallFsmFilePost(plugins, NULL, dn, mode, op, rc);
rpmpluginsCallFsmFilePost(plugins, NULL, apath, mode, op, rc);
if (!rc) {
rpmlog(RPMLOG_DEBUG,