https://gitlab.synchro.net/main/sbbs/-/commit/ad20d861c179725b6d21cba2
Modified Files:
docs/v322_new.md src/sbbs3/ctrl/ConfigWizardUnit.cpp MainFormUnit.cpp src/sbbs3/dupefind.c ftpsrvr.cpp src/sbbs3/gtkchat/chatfuncs.c src/sbbs3/gtkmonitor/gtkmonitor.c src/sbbs3/gtkuseredit/gtkuseredit.c src/sbbs3/gtkuserlist/events.c gtkuserlist.c src/sbbs3/load_cfg.c load_cfg.h mailsrvr.cpp main.cpp makeuser.c qwknodes.c sbbscon.c sbbsecho.c services.cpp src/sbbs3/uedit/uedit.c src/sbbs3/umonitor/umonitor.c src/sbbs3/upgrade_to_v319.c upgrade_to_v320.c src/sbbs3/userlist/SBBS_User_ListApp.cpp src/sbbs3/websrvr.cpp
Log Message:
load_cfg(): require all config files again; read node.ini only for nodes
load_cfg()'s fifth parameter started as "node.cnf is required" in
0feaff3064 (plot-19-pure, 2021-02-13), so every caller other than the
Terminal Server passed false. 6fa5e196c8 (older-45-over, 2022-08-13)
renamed it req_cfg and made main.ini optional too, and 115af6c106 (beast-3-bind, 2026-01-01) made msgs.ini, file.ini, xtrn.ini and
chat.ini optional with it, for jsexec -U. Since v3.21c the FTP, Mail,
Web and Services servers, SBBSecho and the utilities have therefore run
with no message, file, external program or chat areas when one of those
files could not be read (e.g. while SCFG was saving it, #1404), only
logging a warning.
The parameter now has one meaning, "all configuration files are
required", and every caller passes true except jsexec -U, the v3.19 and
v3.20 upgrade utilities and sbbsctrl's configuration wizard.
Whether node.ini is read is now decided by cfg->node_num instead:
load_cfg() no longer turns a node_num of 0 into 1, and reads node.ini
only for a node (the Terminal Server and sbbsctrl set node_num). Every
other program is no longer treated as node 1:
- its transfers, posts and e-mail are counted in the system statistics
only, not also in node 1's (#1409)
- jsexec no longer fails when node1/node.ini is missing
- temp_dir defaults to ../temp/ (the servers and jsexec set their own)
node_dir (the %N command-line specifier and JS system.node_dir) remains
node 1's directory for these programs, as before. The Text Directory no
longer comes from node.ini (#1410).
Fixes #1405
Fixes #1409
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net