• src/sbbs3/scfglib1.c

    From rswindell@VERT to CVS commit on Sun May 24 01:27:22 2020
    src/sbbs3 scfglib1.c 1.84 1.85
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    scfglib1.c
    Log Message:
    Eliminated unused variable: scfgnulstr


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sun Aug 23 14:58:54 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/2516fbca45916c4e59431e26
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Default to a sensible text directory setting if blank in node.cnf

    Also replaced some unsafe str function calls with safe(r) ones.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sun Aug 23 16:09:19 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/6b74a4a934c089505aa34852
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Merge branch 'master' of gitlab.synchro.net:sbbs/sbbs
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Mon Sep 7 20:25:26 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/8b968e36a68de3bfba9180a6
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    We actually no longer create files in data/user/ptrs, so don't create.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Wed Nov 11 01:08:49 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/a05d497ca87075860904f160
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Fix bug in mlong's prextrn mod enhancement

    Caused error:
    exec.cpp line 805 (sbbs_t::exec_bin) opening "s:\sbbs\exec\˜˜˜˜˜˜˜˜.bin" access=0
    As reported by Nelgin via IRC at 3AM Texas-time.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 17 18:37:30 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5e0f2ad6d9d64d0d8a911622
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Fix new GCC warning just introduced in previous commit.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat May 15 18:47:13 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/bd5e5a3f1afdb7ee8479916f
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Remove a bunch of old #ifdef/0'd out code
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Jan 9 15:52:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a9a4f2280007c74f62e79bc8
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Change the default MQTT protocol version from 5.0 to 3.1.1

    I read that 3.1.1 is much more widely supported, but perhaps that was old
    info.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Mon Mar 20 17:37:59 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/aa89e19333de108d30a41fca
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Address MSVC warning: conversion from 'double' to 'unsigned int'

    ... possible loss of data (yeah, yeah, we know)
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Thu Apr 13 18:45:54 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/0ecf245c77cb0092594e98bf
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Clamp the security level lines per message value between 1 and 65535

    If a user's security level lines per message was set to '0', bad things would happen to the heap if the user posted/sent a message. '1' is a reasonable minimum value. If you don't want a user/group of users to send/post messages, there are restrictions for achieving that. Also this setting is (currently,
    at least) 16-bit, so clamp it there too on the high end.

    Also clamp the expire-to security level setting between 0 and 99, while we're here and noticed that this value wasn't being sanitized either.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on macOS)@VERT to Git commit to main/sbbs/master on Sun Mar 9 22:57:35 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/7f769de4ee6fc3804410d528
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Better config (.ini) file read error detection and reporting

    It was possibly before for fgets() failures to be pretty hard to diagnose.
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Mon Dec 29 16:28:43 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/234c37d88a5564fec9324fa5
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Make the default user_prompts and usercfg modules point to stock scripts
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat May 2 16:42:49 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/cbcb74574ca2a92b1e99def4
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    sbbs3 make_data_dirs(): faster startup directory verification

    On systems with many file directories (Vertrauen has thousands), the "Verifying/creating data directories" startup phase took ~8 seconds
    because each entry triggered serial stat()/mkdir() syscalls.

    Three changes drop that to ~2 seconds (4x speedup):

    1. Dedup. Most cfg->dir[i]->data_dir values default to <data_dir>dirs
    (load_cfg.c:308), which make_data_dirs() already creates near the
    top of the function. Seed a str_list with that path and skip
    md_fast() in the per-dir loop when the value matches. The seed is
    only pushed on successful creation Ä failure causes the loop to
    retry per entry rather than skip silently.

    2. mkdir-first via a new file-static md_fast(). md() does
    isdir()+stat() before mkpath, which on Windows fetches file
    attributes and trips Defender's "file opened" introspection.
    md_fast() issues a single MKDIR() and trusts EEXIST without
    re-stat'ing, falling back to md() only when the parent component
    is missing or an unexpected errno surfaces. The tradeoff is that
    a non-directory file at one of these paths won't be diagnosed at
    startup; the BBS reports it later when something tries to open
    files inside it. Public md() is unchanged so other callers keep
    their stricter contract.

    3. trim_trailing_slash() helper shared between md_fast() and the
    loop's cache-key computation, so the canonicalization lives in
    one place.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Nov 21 11:03:05 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ba1a47fcafebced9ebc9f011
    Modified Files:
    src/sbbs3/scfglib1.c
    Log Message:
    Suppress Coverity CID 662403 in read_domains_cfg_file()

    A false positive (SIZEOF_MISMATCH): the call

    allocerr(error, maxerrlen, fname, "domain list", sizeof(char*))

    looks to Coverity like a buffer passed with the size of a pointer to
    it. The last argument is the size of the allocation that failed, for
    the message, and strListInit() allocates one pointer. The buffer's
    size is maxerrlen.

    Introduced by 79e573b634 (appeared-28-earn, 2026-11-20).

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