https://gitlab.synchro.net/main/sbbs/-/issues/936#note_7296
OK, for the 2nd part of the problem, where `.?lo` is in the locks array, it looks like the regex in `lock_file(file)`, is being passed a `.?lo` file, and should return a `.bsy` file - but its not working:
```
log(LOG_INFO,"START lock_flow: "+file)
log(LOG_INFO,JSON.stringify(file.replace(/\.[^\.]*?$/, '.bsy')));
```
Returns:
```
│Jun 03 13:31:36 ⋮ local1.info synchronet: evnt BINKOUT START lock_flow: /opt/sbbs/fido/outbound.00a/00010001.flo │
│Jun 03 13:31:36 ⋮ local1.info synchronet: evnt BINKOUT "/opt/sbbs/fido/outbound.00a/00010001.flo" ┤
```
However later, an actual call doesnt have a suffix:
```
│Jun 03 13:31:45 ⋮ local1.info synchronet: evnt BINKOUT START lock_flow: /opt/sbbs/fido/outbound.00a/00010001. │
│Jun 03 13:31:45 ⋮ local1.info synchronet: evnt BINKOUT "/opt/sbbs/fido/outbound.00a/00010001.bsy" │
```
Retsulting in the correct lock file being returned.
The regex should probably be replaced with:
`file.replace(/\.[^\.]*$/, '.bsy')`
(Note the removal of the question mark.)
--- SBBSecho 3.27-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)