aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2007-10-09 20:15:11 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2007-10-09 20:15:11 (GMT)
commit471cbe59d236db6a141492783d26c8871f2f08b6 (patch)
tree47d7a4580eefa40a26c83b4ed5c030dfb70d5884
parent8e32cb9a8796ace1600b96e567ecbaf3a2b53c15 (diff)
downloadpowwow-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd.c b/cmd.c
index 47fa38a..6c3ef73 100644
--- a/cmd.c
+++ b/cmd.c
@@ -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 ) {