From ab01bb2c9fd9756cf455aa9e6b72ac7047d507d3 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 20 Feb 2003 23:33:36 +0000
Subject: [PATCH] %s in an external program command-line now expands to the
 configured startup directory instead the drop file directory. This allows for
 cross- platform native command-lines for sbj and sbl.

---
 src/sbbs3/xtrn_sec.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/xtrn_sec.cpp b/src/sbbs3/xtrn_sec.cpp
index a315264366..b8372cf647 100644
--- a/src/sbbs3/xtrn_sec.cpp
+++ b/src/sbbs3/xtrn_sec.cpp
@@ -1681,7 +1681,14 @@ bool sbbs_t::exec_xtrn(uint xtrnnum)
 	}
 
 	start=time(NULL);
-	external(cmdstr(cfg.xtrn[xtrnnum]->cmd,path,dropdir,NULL),mode
+	external(cmdstr(cfg.xtrn[xtrnnum]->cmd,path
+#if 0	/* old way */
+		,dropdir
+#else	/* new way, as of Feb-20-2003 */
+		,cfg.xtrn[xtrnnum]->path
+#endif
+		,NULL)
+		,mode
 		,cfg.xtrn[xtrnnum]->path);
 	end=time(NULL);
 	if(cfg.xtrn[xtrnnum]->misc&FREETIME)
-- 
GitLab