LDM 2.2.14 inconsistent plugin path

Floris Bos <bos-2Bwqp0C+fZnAjeZApIleJ/[email protected]> Fri, 12 Sep 2014 22:55:08 +0200
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
Hi,

I compiled LDM 2.2.14 from source, and get a segmentation fault in 
ldm_setup_plugin()

==
void
ldm_setup_plugin()
{
     log_entry("ldm", 7, "setting up plugin: %s", current_plugin);
     LdmBackend *desc =
         (LdmBackend *) g_tree_lookup(plugin_list, current_plugin);

     if (desc->init_cb)
         desc->init_cb();
}
==

It seems it cannot find the default "ssh" plugin in plugin_list, and 
there is no proper check if desc isn't null.

The reason it cannot find it in plugin_list is because plugin_list is empty.
Seems it searches for plugins in /usr/libexec/ldm, but they are 
installed in /usr/lib/ldm

ldm-2.2.14/src/Makefile.am:

ldmlibexecdir = $(libexecdir)/ldm
[...]
               -DLDM_PLUG_DIR=\""$(ldmlibexecdir)"\"

ldm-2.2.14/src/plugins/ssh/Makefile.am

ldmplugdir = $(libdir)/ldm/


Which of the two should be the correct folder?

-- 
Yours sincerely,

Floris Bos


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net