Changeset 160

Show
Ignore:
Timestamp:
09/04/07 15:30:50 (20 months ago)
Author:
smoku
Message:

Fixed module loading path. Closes #62

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/etc/sm.xml.dist.in

    r153 r160  
    205205       doing. --> 
    206206  <modules> 
    207     <!-- Dynamic sm modules path 
    208  
    209          Trailing slash is significant. --> 
    210     <path>@pkglibdir@/</path> 
     207    <!-- Dynamic sm modules path --> 
     208    <path>@pkglibdir@</path> 
    211209 
    212210    <!-- sess-start. The modules in this chain are called when a session 
  • trunk/sm/mm.c

    r159 r160  
    173173                #ifndef WIN32 
    174174                  if (modules_path != NULL) 
    175                       snprintf(mod_fullpath, 512, "%smod_%s.so", modules_path, name); 
     175                      snprintf(mod_fullpath, 512, "%s/mod_%s.so", modules_path, name); 
    176176                  else 
    177                       snprintf(mod_fullpath, 512, "mod_%s.so", name); 
     177                      snprintf(mod_fullpath, 512, "%s/mod_%s.so", PACKAGE_DIR, name); 
    178178                  mod->handle = dlopen(mod_fullpath, RTLD_LAZY); 
    179179                  if (mod->handle != NULL)