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-7.0.0~1347 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ea379e114df3cf55f7666cedd2b9db1c42f7822;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"),