teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone

Blame 0002-plugin-absolute-path.patch

6a0a0c
From 8a95dda30c4237da2a4ef16f3dca76d6b4417bc7 Mon Sep 17 00:00:00 2001
6a0a0c
From: Matteo Croce <teknoraver@meta.com>
6a0a0c
Date: Fri, 22 Nov 2024 19:49:55 +0100
6a0a0c
Subject: [PATCH 2/2] plugin absolute path
6a0a0c
6a0a0c
---
6a0a0c
 lib/rpmplugins.c | 2 +-
6a0a0c
 1 file changed, 1 insertion(+), 1 deletion(-)
6a0a0c
6a0a0c
diff --git a/lib/rpmplugins.c b/lib/rpmplugins.c
6a0a0c
index 1e0c345..4b86320 100644
6a0a0c
--- a/lib/rpmplugins.c
6a0a0c
+++ b/lib/rpmplugins.c
6a0a0c
@@ -371,7 +371,7 @@ rpmRC rpmpluginsCallFsmFilePre(rpmPlugins plugins, rpmfi fi, const char *path,
6a0a0c
 	rpmPlugin plugin = plugins->plugins[i];
6a0a0c
 	RPMPLUGINS_SET_HOOK_FUNC(fsm_file_pre);
6a0a0c
 	if (hookFunc) {
6a0a0c
-	    hook_rc = hookFunc(plugin, fi, path, file_mode, op);
6a0a0c
+	    hook_rc = hookFunc(plugin, fi, apath, file_mode, op);
6a0a0c
 	    if (hook_rc == RPMRC_FAIL) {
6a0a0c
 		rpmlog(RPMLOG_ERR, "Plugin %s: hook fsm_file_pre failed\n", plugin->name);
6a0a0c
 		rc = RPMRC_FAIL;
6a0a0c
-- 
6a0a0c
2.47.0
6a0a0c