From a4ffd8e0e7c8a074fc72d9f124b4e448f46360ba Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Fri, 3 Feb 2006 09:08:24 +0000
Subject: [PATCH] When executing a module via external("*modname",..) with no
 extension specified, if "filename.js" exists, it will be executed instead of
 "filename.bin". Previously, the ".bin" extension was always assumed if it
 wasn't specified on the command-line. This modification allows
 exec/bullseye.js to take precedence over exec/bullseye.bin without any change
 to the command-line configuration. Execute "*filename.bin" if you want to
 specifically execute "filename.bin" and not "filename.js" (if it exists).

---
 src/sbbs3/xtrn.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/sbbs3/xtrn.cpp b/src/sbbs3/xtrn.cpp
index b44c88e80a..47173e5fc6 100644
--- a/src/sbbs3/xtrn.cpp
+++ b/src/sbbs3/xtrn.cpp
@@ -288,8 +288,6 @@ static bool native_executable(scfg_t* cfg, const char* cmdline, long mode)
 			*p=0; 											\
 		} else												\
 			main_csi.str[0]=0;								\
-		if(!strchr(str,'.'))								\
-			strcat(str,".bin");								\
 		return(exec_bin(str,&main_csi));					\
 	}														
 #ifdef JAVASCRIPT
-- 
GitLab