From 0ea379e114df3cf55f7666cedd2b9db1c42f7822 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Nov 2010 23:17:20 +0100 Subject: [PATCH] Handle all kind of plugins when computing plugin name length --- bacula/src/lib/plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/plugins.c b/bacula/src/lib/plugins.c index cd1071929e..5003c5d450 100644 --- a/bacula/src/lib/plugins.c +++ b/bacula/src/lib/plugins.c @@ -155,7 +155,7 @@ bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir, plugin = new_plugin(); plugin->file = bstrdup(result->d_name); - plugin->len = strstr(plugin->file, "-fd.") - plugin->file; + plugin->len = strstr(plugin->file, type) - plugin->file; plugin->pHandle = dlopen(fname.c_str(), RTLD_NOW); if (!plugin->pHandle) { Jmsg(NULL, M_ERROR, 0, _("Plugin load %s failed: ERR=%s\n"), -- 2.39.5