aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-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 ) {