From f4ffbe80f516783285a847cc817eb71dea15fe6d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 16 Jan 2016 01:52:02 +0000
Subject: [PATCH] Fix generation of .bsy/.csy file names. Re-populate the
 address list with 5D addresses... binkp.js fills it with 4D ones.

---
 exec/binkit.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/exec/binkit.js b/exec/binkit.js
index 4be2d05b96..fa13cb3306 100644
--- a/exec/binkit.js
+++ b/exec/binkit.js
@@ -22,8 +22,8 @@ load("fidocfg.js");
 function lock_flow(file, csy)
 {
 	var ret = {
-		bsy:new File(file.replace(/\.*?$/, '.bsy')),
-		csy:new File(file.replace(/\.*?$/, '.csy'))
+		bsy:new File(file.replace(/\..*?$/, '.bsy')),
+		csy:new File(file.replace(/\..*?$/, '.csy'))
 	};
 
 	// Takes ownership of a lockfile if it's more than six hours old.
@@ -364,6 +364,10 @@ function callout(addr, scfg)
 	bp.default_domain = myaddr.domain;
 	bp.want_callback = callout_want_callback;
 
+	// We can't use the defaults since the defaults are only 4D addresses.
+	bp.addr_list = [];
+	system.fido_addr_list.forEach(function(faddr){bp.addr_list.push(FIDO.parse_addr(faddr, this.default_zone, 'fidonet'));}, this);
+
 	// We won't add files until the auth finishes...
 	success = bp.connect(addr, bp.cb_data.binkitpw, callout_auth_cb, port);
 
-- 
GitLab