diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2007-10-09 20:15:11 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2007-10-09 20:15:11 (GMT) |
commit | 471cbe59d236db6a141492783d26c8871f2f08b6 (patch) | |
tree | 47d7a4580eefa40a26c83b4ed5c030dfb70d5884 | |
parent | 8e32cb9a8796ace1600b96e567ecbaf3a2b53c15 (diff) | |
download | powwow-471cbe59d236db6a141492783d26c8871f2f08b6.zip powwow-471cbe59d236db6a141492783d26c8871f2f08b6.tar.gz powwow-471cbe59d236db6a141492783d26c8871f2f08b6.tar.bz2 |
Don't try and load non-.so files in cmd_module
-rw-r--r-- | cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -253,10 +253,14 @@ static void cmd_module __P1 (char *,arg) { for( pindex = 0; pindex < 4; pindex++ ) { bzero( libname, 1024 ); + /* don't look for name without .so, it breaks if you have a file + * with the same name in the current dir and making it .so for sure + * will skip these files since they are probably not libs to load snprintf( libname, 1024, "%s/%s", prefixes[ pindex ], arg ); if( stat( libname, &junk ) == 0 ) { break; } + */ snprintf( libname, 1024, "%s/%s.so", prefixes[ pindex ], arg ); if( stat( libname, &junk ) == 0 ) { |