From: Eric Bollengier Date: Tue, 23 Nov 2010 22:17:20 +0000 (+0100) Subject: Handle all kind of plugins when computing plugin name length X-Git-Tag: Release-5.2.1~882 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1056879daf4926e3ae9afe83cda1c07979161a60;p=bacula%2Fbacula Handle all kind of plugins when computing plugin name length --- 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"),