Blob Blame History Raw
From 8a95dda30c4237da2a4ef16f3dca76d6b4417bc7 Mon Sep 17 00:00:00 2001
From: Matteo Croce <teknoraver@meta.com>
Date: Fri, 22 Nov 2024 19:49:55 +0100
Subject: [PATCH 2/2] plugin absolute path

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

diff --git a/lib/rpmplugins.c b/lib/rpmplugins.c
index 1e0c345..4b86320 100644
--- a/lib/rpmplugins.c
+++ b/lib/rpmplugins.c
@@ -371,7 +371,7 @@ rpmRC rpmpluginsCallFsmFilePre(rpmPlugins plugins, rpmfi fi, const char *path,
 	rpmPlugin plugin = plugins->plugins[i];
 	RPMPLUGINS_SET_HOOK_FUNC(fsm_file_pre);
 	if (hookFunc) {
-	    hook_rc = hookFunc(plugin, fi, path, file_mode, op);
+	    hook_rc = hookFunc(plugin, fi, apath, file_mode, op);
 	    if (hook_rc == RPMRC_FAIL) {
 		rpmlog(RPMLOG_ERR, "Plugin %s: hook fsm_file_pre failed\n", plugin->name);
 		rc = RPMRC_FAIL;
-- 
2.47.0