• src/sbbs3/xtrn.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Wed Dec 31 01:59:39 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/26904b5dc456d76dc1b0ec29
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Only attempt to unlock the input_thread_mutex if we previously locked it

    This *might* fix issue #1038

    ---
    þ 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 Sun Jan 11 19:36:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5d43eed990eda19d808d8c92
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Don't use dosemu paths in command-lines when dosemu support is disabled

    This just adds to confusion when debugging weird errors, like this:

    pack_qwk.cpp line 753 (pack_qwk) executing "H:\zip -jD /sbbs/data/file/0230.qwk

    ---
    þ 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 Fri Jul 10 01:39:22 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/f175c6ad7c7d35905bf19189
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Add cmdline specifiers for terminal type and charset (%< and %>) - lowercased

    e.g. for use on the command-line to (new door game) Immortal Barons https://andy5995.github.io/immortal-barons/door-setup/#character-set

    Allowing it to send UTF-8 or CP437, untranslated by sbbs, to the appropriate user/terminals, if desired.

    ---
    þ 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 Tue Jul 21 01:41:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/de1662c069cb723cd2acd958
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Log an error when an external program's command line is truncated

    sbbs_t::external() assembles the child's command line into
    fullcmdline[MAX_PATH + 1] -- 260 usable characters -- via SAFEPRINTF / SAFECOPY, both of which truncate SILENTLY. That string IS the child's entire command line, so an over-long one runs the program with its trailing
    arguments missing.

    The failure is very hard to diagnose because the evidence contradicts the symptom: the "Executing external" log line prints the command we MEANT to
    run, while the child received a shortened one. Observed with a SyncRetro
    door whose lobby built a 334-character line -- the ROM path fell off the end and the door reported its content missing while the log showed that
    content's full path, which sent the search in entirely the wrong direction.

    Log the truncation on both branches, with the length it was cut to, the
    length it needed, and the command as actually issued.

    The needed length is MEASURED from the inputs rather than read from snprintf()'s return, which looks backwards and is commented as such at both sites: genwrap.h redirects snprintf() to xpdev's safe_snprintf() unless USE_SNPRINTF is defined, and that wrapper clamps its return to size-1 (31 callers accumulate with `d += snprintf(...)` and would otherwise run past
    the buffer). USE_SNPRINTF is set only for darwin and freebsd, so the return value is the C99 would-be length on those and the truncated length on Linux
    and Windows -- a check written the obvious way would work on a developer's
    Mac and be silently dead in production.

    This only reports; nothing is resized. Note that cmdstr() has its own,
    earlier limit (cmdstr_output[512]) which is likewise silent, so a very long configured command line can already be shortened before external() ever
    sees it.

    Windows branch compiles clean; the *nix branch is UNCOMPILED here (no
    GCC/Clang on this host) and the log message has not yet been observed
    firing.

    ---
    þ 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 Sun Nov 29 21:45:42 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3b911c6425773f321c631ef5
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Escape Telnet IAC once in translated external program output

    On Windows, intercepted non-binary output was passed through
    telnet_expand() and then rputs(), whose term_out() escapes IAC again,
    so a literal 0xFF reached a Telnet client as FF FF FF FF. The extra
    expansion was left behind when ffef77363c (2019-07-06) routed
    non-binary output through rputs(). Expand only EX_BIN output, which
    bypasses rputs().

    On POSIX, translated output was written straight to the output ring
    with no IAC escaping, so a door's literal 0xFF was read by the client
    as a Telnet command (e.g. FF FC xx as IAC WONT). Send it through
    rputs() as Windows does, which also brings CP437-to-ASCII
    translation and terminal state tracking to POSIX doors and replaces
    the local PETSCII/UTF-8 conversion helpers.

    Fixes #1435

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ 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 Sun Nov 29 22:08:30 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/017556a2609eb19583934c2e
    Modified Files:
    src/sbbs3/xtrn.cpp
    Log Message:
    Don't send NULs in place of external programs' trailing stderr whitespace

    On *nix, an external's stderr (when not EX_NOLOG) is read into the
    same buffer that is then sent to the user. Trimming each line in
    place for the log, as done since 9fbd5b3a01 (2020-11-05), replaced
    trailing whitespace with NULs on the wire: an interactive bash door
    lost the space after its prompt, the newline on Enter, and the echo
    of a typed space. Trim a copy for the log instead.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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