| |
@@ -0,0 +1,41 @@
|
| |
+ From 4a17a8f52732cf508a35d2686591b0b7df9c000b Mon Sep 17 00:00:00 2001
|
| |
+ From: Matteo Croce <teknoraver@meta.com>
|
| |
+ Date: Thu, 5 Dec 2024 23:12:19 +0100
|
| |
+ Subject: [PATCH] absoute path
|
| |
+
|
| |
+ Adapt rpmpluginsCallFsmFileInstall to use absolute path
|
| |
+
|
| |
+ ---
|
| |
+ lib/rpmplugins.c | 4 +++-
|
| |
+ 1 file changed, 3 insertions(+), 1 deletion(-)
|
| |
+
|
| |
+ diff --git a/lib/rpmplugins.c b/lib/rpmplugins.c
|
| |
+ index 4b86320..1418aed 100644
|
| |
+ --- a/lib/rpmplugins.c
|
| |
+ +++ b/lib/rpmplugins.c
|
| |
+ @@ -444,12 +444,13 @@ rpmRC rpmpluginsCallFsmFileInstall(rpmPlugins plugins, rpmfi fi,
|
| |
+ int i;
|
| |
+ rpmRC rc = RPMRC_OK;
|
| |
+ rpmRC hook_rc;
|
| |
+ + char *apath = abspath(fi, path);
|
| |
+
|
| |
+ for (i = 0; i < plugins->count; i++) {
|
| |
+ rpmPlugin plugin = plugins->plugins[i];
|
| |
+ RPMPLUGINS_SET_HOOK_FUNC(fsm_file_install);
|
| |
+ 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_install failed\n", plugin->name);
|
| |
+ rc = RPMRC_FAIL;
|
| |
+ @@ -467,6 +468,7 @@ rpmRC rpmpluginsCallFsmFileInstall(rpmPlugins plugins, rpmfi fi,
|
| |
+ }
|
| |
+ }
|
| |
+ }
|
| |
+ + free(apath);
|
| |
+
|
| |
+ return rc;
|
| |
+ }
|
| |
+ --
|
| |
+ 2.47.1
|
| |
+
|
| |
Use always absolute path in plugin