• load_cfg(): since v3.21c the servers and sbbsecho run without msgs/fil

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Mon Nov 23 13:16:16 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1405
    2026-11-23 13:16:15 -0800

    Since v3.21c, the FTP, Mail, Web and Services servers, sbbsecho, and several utilities (dupefind, makeuser, qwknodes, sbbscon) start or recycle successfully when `msgs.ini`, `file.ini`, `xtrn.ini` or `chat.ini` can't be read. They log `!WARNING loading configuration files: ...` and run with that part of the configuration empty. Before v3.21c, a missing file of those four was a load failure for every caller.

    ## How the flag drifted

    `load_cfg()`'s fifth parameter:

    1. 0feaff3064 (plot-19-pure, 2021-02-13) added it as `req_node`: "node.cnf is required". Only the Terminal Server passes `true`; every other caller passes `false` because it has no node configuration of its own (#214). That is where the `/* node: */ false` comments at the call sites come from.
    2. 6fa5e196c8 (older-45-over, 2022-08-13) renamed it `req_cfg` and made `main.ini` optional too, so jsexec could run `upgrade_to_v320.js` before `main.ini` existed. `msgs`, `file`, `xtrn` and `chat` were still always required.
    3. 115af6c106 (beast-3-bind, 2026-01-01) added `&& req_cfg` to the `msgs`/`file`/`xtrn`/`chat` loads, for `jsexec -U` (the v3.19 to v3.20 upgrade path). Every caller passing `false` for the reason in step 1 lost the requirement for those four files as well. Shipped in v3.21c.

    `load_cfg.h` still names the parameter `req_node`; `load_cfg.c` names it `req_cfg`.

    ## Effect

    Combined with #1404 (SCFG removes a config file for the duration of its save), a server recycling or sbbsecho running while the sysop saves in SCFG now runs without that configuration instead of failing to load. Seen live with sbbsecho and `file.ini`; with `msgs.ini`, sbbsecho would load no message areas and most likely misfile incoming echomail to the bad-echo area.

    Simply passing `true` from the servers is not the fix: that would make `node.ini` required for them again, undoing #214.

    ## Proposed fix

    Separate the two meanings, for example with two flags or a small set of bit flags:

    - `node.ini`: optional for every caller except the Terminal Server (as in step 1).
    - `main.ini`, `msgs.ini`, `file.ini`, `xtrn.ini`, `chat.ini`: required for every caller except `jsexec -U`.

    That restores the pre-v3.21c behavior for the servers, sbbsecho and the utilities, keeps the `jsexec -U` upgrade path working, and lets the call-site comments say what the argument actually means.

    _Authored by Claude (Claude Code), on behalf of @rswindell_

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Mon Nov 23 14:24:54 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1405#note_11360

    Simpler proposed fix (replaces the two-flag split in the description):

    Instead of a separate "node.ini required" flag, let `cfg->node_num` decide. `load_cfg()` currently changes a `node_num` of 0 to 1 (`if (cfg->node_num < 1) cfg->node_num = 1;`), so every caller that doesn't set it reads node 1's `node.ini`. Instead:

    - Drop that adjustment. Load `node.ini` only when `cfg->node_num` is non-zero. - Callers that are a node set `node_num` before calling: the Terminal Server already sets `scfg.node_num = startup->first_node` before its `load_cfg()` (`main.cpp`), its per-node reloads set it too, and so does sbbsctrl (`MainFormUnit.cpp`). Everything else (FTP, Mail, Web, Services, sbbsecho, jsexec, the utilities) leaves it 0 and doesn't read `node.ini` at all.
    - The fifth argument keeps a single meaning, "all configuration files are required", and the servers, sbbsecho and jsexec pass `true`. Only `jsexec -U` (the v3.19 to v3.20 upgrade) passes `false`. This also stops plain jsexec failing when `node1/node.ini` is missing, which it has done since 115af6c106 (beast-3-bind, 2026-01-01).

    Things that depend on callers getting node 1's configuration today, to handle in the same change:

    1. **`text_dir` is read only from `node.ini`.** With no `node.ini`, it would be empty and `prep_dir()` would turn it into `ctrl/`, breaking the FTP server's `ftp*.txt` files, the Mail server's command-line expansion, and JS `system.text_dir`. `load_cfg()` must default it (to `../text/`) when it skips `node.ini`. See #1410 (a system-wide Text Directory).
    2. **`temp_dir`** also comes from `node.ini`. The FTP and Mail servers and jsexec already override it; it still needs a default for other callers.
    3. **Node statistics:** callers counted as node 1 today stop being counted as node 1. This fixes #1409.
    4. **`node_dir` in archive command-line expansion** (`filedat.c`) would expand to empty for the servers.

    _Authored by Claude (Claude Code), on behalf of @rswindell_

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Mon Nov 23 22:45:10 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1405
    2026-11-23 22:45:05 -0800

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net