From 471cbe59d236db6a141492783d26c8871f2f08b6 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 9 Oct 2007 20:15:11 +0000 Subject: Don't try and load non-.so files in cmd_module 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 ) { -- cgit v0.10.2