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