From 00a80d45d884c9ab547fef31c31b1141fbfc654b Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows 11)" <rob@synchro.net>
Date: Mon, 8 Apr 2024 11:46:01 -0700
Subject: [PATCH] exec/*.bin cmd shell filenames were case sensitive (must've
 been lowercase)

... while the mods/*.bin command shell filenames could be any-case!

Only impacted non-Windows systems (UNIX file systems are case-sensitive).

Discovered while making this tutorial video: https://youtu.be/HlwQ0uX4S04
---
 src/sbbs3/main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index a6ea6119dd..b0dafdc383 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -4466,9 +4466,11 @@ void node_thread(void* arg)
 				}
 				SAFEPRINTF2(str,"%s%s.bin",sbbs->cfg.mods_dir
 					,sbbs->cfg.shell[sbbs->useron.shell]->code);
-				if(sbbs->cfg.mods_dir[0]==0 || !fexistcase(str))
+				if(sbbs->cfg.mods_dir[0]==0 || !fexistcase(str)) {
 					SAFEPRINTF2(str,"%s%s.bin",sbbs->cfg.exec_dir
 						,sbbs->cfg.shell[sbbs->useron.shell]->code);
+					fexistcase(str);
+				}
 				if((file=sbbs->nopen(str,O_RDONLY))==-1) {
 					sbbs->errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
 					sbbs->hangup();
-- 
GitLab