• exec/init-fidonet.js exec/load/cfglib.js

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Fri Sep 22 11:57:03 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/8c6fa14a0cd8102649e6979f
    Modified Files:
    exec/init-fidonet.js exec/load/cfglib.js
    Log Message:
    Fix "error 13 opening" files when using init-fidonet.js

    I finally reproduced this issue myself on a fresh install on Windows.

    We needed explicit file closing here as going out of scope doesn't immediately finalize (and close) a File object. That may not happen until garbage collection and thus prevent subsequent re-opens of the same files, so always close() your files.

    init-fidonet.js calls install-binkit.js which uses cfglib.js, so that was
    a source of these errors too.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)