]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/plugins.c
Detect mount/junction points and ignore junctions in Windows
[bacula/bacula] / bacula / src / lib / plugins.c
index de0819dd7a411811d6e991e5e379ba05b5439b7b..35a0abf3679ebe4d0edf491576cb3e0145d2fedd 100644 (file)
@@ -155,6 +155,7 @@ bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir,
 
       plugin = new_plugin();
       plugin->file = bstrdup(result->d_name);
+      plugin->file_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"),