From c420e3ce861bff2433c7f3e6da3bb9df18c8e095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 29 Jun 2023 02:24:59 +0200 Subject: Fix plugin search path on Nix Even its non-full GNUInstallDirs paths are absolute, which is apparently allowed. --- ponymap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ponymap.c') diff --git a/ponymap.c b/ponymap.c index 1c93f88..41255d4 100644 --- a/ponymap.c +++ b/ponymap.c @@ -840,6 +840,7 @@ load_one_plugin (struct app_context *ctx, const char *name, const char *path) void *table = dlopen (path, RTLD_LAZY | RTLD_LOCAL); if (!table) { + print_debug ("%s", path); print_error ("could not load `%s': %s", name, dlerror ()); return false; } @@ -874,6 +875,7 @@ load_plugins (struct app_context *ctx) DIR *dir = opendir (plugin_dir); if (!dir) { + print_debug ("%s", plugin_dir); print_fatal ("%s: %s", "cannot open plugin directory", strerror (errno)); return false; -- cgit v1.2.3