• src/vdmodem/vdmodem.c

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Nov 8 17:55:18 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ab695e224bda17973b27c0d5
    Modified Files:
    src/vdmodem/vdmodem.c
    Log Message:
    vdmodem: keep the node number across ATZ

    ATZ re-reads svdm.ini, and read_ini() takes cfg.node_num from the Node key
    when one is present. The mailslots and events were already created under
    the node number the process started with, so a process started with a
    different -n value (or bumped past an in-use node by the mailslot loop)
    opened another node's write mailslot on its first response after ATZ, and
    that node's DOS program received this modem's output. A DOS BBS that sends
    ATZ as its very first command, before anything else has opened the write mailslot, hits this with any shared svdm.ini that sets Node.

    Save and restore cfg.node_num around the re-read.

    Introduced in 2fc0df9afa (2022-06-08), which made ATZ re-read the .ini
    file; the Node key dates from 8412cbe299 (2022-05-23).

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net