• docs/v322_new.md src/sbbs

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Oct 23 20:52:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/b4ff53364840117fe90ee585
    Modified Files:
    docs/v322_new.md src/sbbs3/ars.c ars_defs.h chk_ar.cpp userdat.c
    Log Message:
    ARS: add SOUND and MOUSE terminal capability keywords

    SOUND is true when the terminal can play audio files (the same gate the
    @SOUND: family of @-codes uses) and the user has not turned off
    BBS-initiated sound. MOUSE is true when the terminal supports mouse
    hot-spots. This lets a display file gate content around a sound clip,
    e.g. @SHOW:SOUND@@WAIT:100@@SHOW@ to hold the connection open only for
    callers who will hear it.

    Without a live terminal (sessionless evaluation, e.g. in the web and FTP servers), SOUND follows only the user's sound setting and MOUSE the
    user's stored mouse setting. Failing either keyword reports the
    existing NoAccessTerminal text.

    Also adds the v3.22 release-note entry for the SCFG template sub-board
    fix (#1280).

    Fixes #1292

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Oct 23 20:52:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/50a5a194e66000493f55a783
    Modified Files:
    docs/v322_new.md src/sbbs3/answer.cpp
    Log Message:
    answer: detect UTF-8 with U+2060 Word Joiner, not obsolete ZWNBSP

    Terminal auto-detection has sent U+FEFF (ZWNBSP) after a CR and taken
    the second cursor-position report as the verdict since 11d3f59f5a (error-3-cancel, 2019-06-28): column 1 or 2 means UTF-8. Since Unicode
    3.2, U+2060 is the in-text zero-width no-break character and U+FEFF is
    just the byte-order mark, which a terminal may render as an unsupported character. A UTF-8 terminal drawing a full-width replacement glyph
    lands on column 3 and goes undetected.

    Probe with U+2060 (E2 81 A0) instead. glibc wcwidth() gives both 0, and
    in tmux both leave the cursor where it was, so conforming terminals see
    no change. A terminal too old to know U+2060 and drawing it one column
    wide still lands on column 2 and is detected, with unicode_zerowidth=1.

    The "x < 3" threshold stays: 0x81 is a C1 control in ISO-8859-x, so a
    Latin-1 terminal that swallows it prints two glyphs and lands on
    column 3, which must not read as UTF-8.

    Fixes #1284

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Sun Oct 25 14:40:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/eb6e30af8af755f35dc494bc
    Modified Files:
    docs/v322_new.md src/sbbs3/sbbsexec.c vdd_func.h xtrn.cpp
    Log Message:
    Allow concurrent DOS doors on the same node number from two BBS hosts

    The mailslots and events the Windows VDD (sbbsexec.dll) and its host
    share were named by node number alone since 7e3e47141a (2000-10-10),
    so a second BBS instance on the same system (another Synchronet install
    or a different BBS package using our FOSSIL/UART driver) running a DOS
    program for the same node number failed its launch with an ERR_CREATE
    on the rd mailslot.

    The host now creates the legacy names first, the mailslot before the
    events since its name is machine-global and CreateMailslot() fails
    atomically when it exists. On ERROR_ALREADY_EXISTS it retries once
    with a ".<pid>" suffix and launches the VDM with SBBSEXEC_INSTANCE=<pid>
    in its environment; the VDD appends the suffix to every name it opens.
    With no variable set the VDD uses the exact legacy names, so an older sbbsexec.dll keeps working wherever a launch worked before.

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Sun Oct 25 18:47:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/45782f780df71c073a2beb92
    Modified Files:
    docs/v322_new.md src/sbbs3/js_global.cpp js_socket.cpp jsexec.cpp mailsrvr.cpp main.cpp sbbs.h services.cpp websrvr.cpp
    Log Message:
    Route JS Socket log output to the script host's logger, not the terminal server's

    js_socket.cpp logged everything through the file-global lprintf(), which
    inside sbbs.dll/libsbbs.so resolves to main.cpp's terminal-server logger.
    The mail, web and services servers each keep their own static lprintf(),
    so a Socket's debug trace, TLS errors and listening-socket failures from
    their scripts appeared in the Terminal Server's log, were tagged "term"
    in error.log and published under the terminal server's MQTT topic.
    Under jsexec on Windows the terminal startup is NULL, so the output was
    dropped entirely and errors were written to an error.log in the current directory through the DLL's zeroed scfg. This dates from the Socket
    class's introduction in a8352397c7 (2001-06-12); the TODO noting it was
    added in 34587421f7 (2023-11-21).

    Add an lprintf function pointer to js_callback_t, set by every host when
    it initializes its callback struct and inherited by background load()
    threads. js_socket.cpp resolves its logger through the socket's js_cb,
    falling back to the terminal server's when a host set none, and passes
    the same pointer to ssl_sync(), add_private_key(), destroy_session() and xpms_create(). The cryptlib attribute helpers take the socket private
    struct instead of a bare session so they can reach it, and their TLS
    messages now carry the socket number like the rest.

    Resolves #700

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Mon Oct 26 00:09:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5cfbf97f3d802ff7918ecfe8
    Modified Files:
    docs/v322_new.md src/sbbs3/qwk.cpp
    Log Message:
    qwk: take the QWK job lock before a REP upload, not after it

    qwk_upload() took the user's QWK job lock only once the protocol had
    received the REP, so when another session (FTP, Web, a script or another
    host) held it, the user's uploaded packet was refused and deleted, and
    had to be sent again.

    The lock is now taken before the upload prompt, as qwk_download() does,
    and held through unpack_rep(); a busy lock shows QWKTransferInProgress
    before any transfer starts.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Mon Oct 26 20:38:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/45147ca28ee23dd4ef43c81f
    Modified Files:
    docs/v322_new.md src/sbbs3/data_ovl.cpp
    Log Message:
    Defer the "Loading message pointers" meter the same way

    Share the deferred-progress callback 5ea61816cf (2026-10-26) added
    for the duplicate-user search with getmsgptrs(), so the logon-time
    meter also draws only once loading has outlasted the progress
    interval and erases only if it was drawn.

    Add the release note for both.

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Sun Nov 1 00:20:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/442843d7aae805670e59d103
    Modified Files:
    docs/v322_new.md src/sbbs3/sbbs.h sbbsdefs.h src/sbbs3/scfg/scfgxtrn.c src/sbbs3/writemsg.cpp xtrn.cpp xtrn_sec.cpp
    Log Message:
    Offer BBSDEV.DRP and DOORDROP.INI drop files to external editors

    Both types are now in SCFG's drop file list for external message editors,
    not only online programs. When an editor uses one, the message editor
    launch writes the file to the node directory, hands the editor its path
    in the BBSDEV_DRP or DOORDROP_INI environment variable (the %f specifier
    keeps naming the message text file) and, for DOORDROP.INI, removes the
    file after the editor exits. A failure to write the file aborts the
    editor instead of launching it with a dangling path.

    The DOS-side path of a drop file (the DOSEMU drive on Linux, the doscmd
    drive on FreeBSD, the short path on Windows) moves from exec_xtrn() into dos_drop_path(), so the editor launch shares it. The doscmd drive
    letters, until now string literals in the .doscmdrc writer, get DOSCMD_*
    macros alongside the DOSEMU_* ones.

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Nov 6 20:31:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/fc12511c119b01a78909deb7
    Modified Files:
    docs/v322_new.md src/sbbs3/telgate.cpp
    Log Message:
    Don't drop remote output in telnet_gate() when the output buffer is full

    RingBufWrite() stores only what fits in the ring buffer and returns that
    count. telnet_gate() ignored the return value, so once the 20000-byte
    outbuf filled (any time the remote host produced output faster than the
    user's connection drained it), whatever didn't fit was silently discarded.
    A door sending Sixel graphics over an rlogin gate to a SyncTERM user lost chunks mid-image.

    Now the gateway receives from the remote only as much as the output buffer
    can hold (half that when expanding LFs, since the expansion can double the data) and idles, still forwarding the user's keystrokes, when there is no
    room; TCP back-pressure then throttles the remote host. The local echo
    path waits for the output thread to make room rather than dropping too.

    Verified with a fake rlogin host blasting 240 KB at a deliberately slow
    telnet client: before, the stream diverged at byte 19999 and 147 KB never arrived; after, all 240 KB arrive intact, including with TG_ECHO (keys sent mid-stream) and TG_EXPANDLF.

    Fixes #1325

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Sat Nov 7 20:38:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/61a343a6418a6cb9aba1a82c
    Modified Files:
    docs/v322_new.md src/sbbs3/scfg/scfg.c scfg.h scfgsub.c scfgxfr2.c src/uifc/uifc.h
    Log Message:
    scfg: make long Actual File Paths viewable

    A directory with a blank or relative Actual File Path shows the resolved
    full path in [brackets] on the directory menu, where it is clipped at the window edge, and pressing Enter edited the (blank) stored value, so there
    was no way to read the whole path. Fixes #1327

    - Pressing Enter on a blank Actual File Path now seeds the input box with
    the derived path, so it can be scrolled. Accepting it unchanged keeps the
    setting blank (derived); any edit is stored as typed.
    - The directory and sub-board configuration windows now widen to fit their
    longest line (minimum 72 columns, so an 80-column screen is unchanged)
    via a new opt_width() helper, so wider terminals show the full path.
    - MAX_OPLN raised from 75 to 256 (the screen-width limit); menu lines
    built with it were truncated to 47 characters of value after the 27
    character label, which clipped the path before the window did.
    - Help text for Actual File Path, FidoNet Area Tag (dirs and subs), and
    Newsgroup Name now explains that a [bracketed] value is derived, not
    stored.

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Sun Nov 8 15:46:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/16d0248e3cc9fa1e833acdf0
    Modified Files:
    docs/v322_new.md src/sbbs3/con_hi.cpp getstr.cpp writemsg.cpp
    Log Message:
    Accept Unicode (UTF-8) text in the internal message editor

    On a UTF-8 terminal, the internal editor translated every typed
    character to CP437 and dropped any with no CP437 equivalent (e.g.
    "¨", "¨", "¨"), because its getstr() calls lacked K_UTF8. The subject
    prompt has passed K_UTF8 since f68a24d61b (registry-20-rail,
    2024-02-20), so a subject could hold emoji while the body could not.

    getstr() now handles multi-byte UTF-8 input as characters: the bytes
    of a sequence are collected per keystroke, byte-offsets and display
    columns are tracked separately (via str_width/prev_char/next_char),
    and all editing operations (word-wrap, insert/overwrite, backspace,
    delete, Ctrl-W/Ctrl-D, Home/End, cursor keys, tab stops, centering)
    work on characters and columns. The line-length limit remains a byte
    limit (the caller's buffer size) while the wrap point is the terminal
    width in columns. Edits go through two shared routines (insert_bytes/ delete_range) that print the same screen state as before for CP437
    input.

    redrwstr() moved to getstr.cpp (its only caller) and takes byte
    offsets for both the cursor position and the length, converting to
    columns itself. It previously compared a column count against a byte
    count and so, after a multi-byte character was typed into a K_UTF8
    field (e.g. an emoji in a subject), moved the cursor back to the start
    of the field; text typed next overwrote the character on screen.

    A CP437-translated high-bit character (e.g. "­") typed on a UTF-8
    terminal was stored but never echoed, since the echo branch required
    the buffer to be valid UTF-8. It is now echoed via outchar(), which
    performs the CP437 to UTF-8 translation.

    The editor's per-line byte budget (MAX_LINE_LEN) grows from cols+1 to (cols-1)*UTF8_MAX_LEN+3 to hold multi-byte lines. The old value also
    left no room for the CR/LF of a full-width line: a 79-column line on
    an 80-column terminal lost its LF when the lines were rejoined.

    The "Export ASCII Characters Only" sub-board setting is an export-time conversion and does not restrict local input.

    Fixes #1317

    Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Tue Nov 10 22:21:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/66b4a82b68da0e86c2c07abb
    Modified Files:
    docs/v322_new.md src/sbbs3/jsexec.cpp
    Log Message:
    jsexec: add -T to prefix log and status messages with the date and time

    A long-running script that logs to a file (-A) had no way to say when
    anything happened: working out the order and duration of events in an ircd
    log meant inferring the time from protocol messages that happen to carry
    one.

    With -T each message written by lprintf() or mfprintf() (script log()
    calls, JavaScript errors and warnings, and the per-run status lines) starts with the local date and time to the millisecond:

    2026-11-10 22:03:30.494 info line

    Output written by print(), write() and the like is the script's own and is
    not prefixed, and syslog output (-d) already carries a time.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Tue Nov 10 22:33:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3592004a31ca096b15faeafd
    Modified Files:
    docs/v322_new.md src/sbbs3/ftpsrvr.cpp mailsrvr.cpp main.cpp websrvr.cpp src/xpdev/multisock.c multisock.h
    Log Message:
    Close server listening sockets as soon as shutdown begins

    The terminal, mail, FTP, and web servers kept their listening sockets open until cleanup(), which runs only after the wait for active clients and
    child threads. Nothing calls accept() during that wait, but the kernel
    still completes TCP handshakes into the listen backlog, so every client
    that connected during a shutdown or recycle sat on an unanswered
    connection until the sockets finally closed, then got a reset. On a busy
    web server that drain can last two minutes.

    Add xpms_close() to xpdev, which closes a set's sockets but leaves the set allocated, and call it in each server right after its accept loop exits. xpms_destroy() now uses it. The set must stay allocated rather than being destroyed early because the FTP transfer threads treat ftp_set == NULL as "server torn down": clearing it at the start of a recycle would abort in-progress transfers. The services server already closed its sockets at
    this point.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Wed Nov 11 13:30:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/525b70ed664b4fdb3da26c25
    Modified Files:
    docs/v322_new.md src/sbbs3/atcodes.cpp
    Log Message:
    @TUSED@/@TLEFT@: don't drop the first hours digit at 10+ hours

    The truncated HH:MM:SS duration format (the default for @TUSED@ and
    @TLEFT@) skipped the first character of sectostr()'s output to drop a
    leading zero, but did so unconditionally: once a duration reached 10 hours
    it removed the first digit of the hours instead, so a 14h44m session was
    shown as "4:44:30" (e.g. "Time used:" in the stock logoff.msg) and 100
    hours as "00:00:00". Skip the leading character only when it is a '0'.

    Fixes #1336

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Wed Nov 11 13:56:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/38c93be5ba8d0cd42049e8d6
    Modified Files:
    docs/v322_new.md src/sbbs3/js_internal.cpp js_socket.cpp js_socket.h Log Message:
    js: don't block a non-blocking TLS socket's send on an idle peer

    cryptlib's write timeout defaults to 5 seconds and Socket never changed
    it, so send() on a TLS socket whose peer had stopped reading held the
    script for 5 seconds in the push and again in the flush, even with
    nonblocking set. In an event-driven script (the IRC daemon) that froze
    every other connection and timer for as long as one peer was slow.

    A non-blocking TLS socket now gets a zero write timeout, and the
    session's own timeout back if the script makes it blocking again. A
    flush that cannot finish is no longer an error: js_handle_events()
    retries it, for sockets with a read event, and wakes every 20 ms while
    any output is waiting. cryptlib waits 5 ms or more on the descriptor
    even with a zero timeout, so send() and the retry first check that the
    socket is writable.

    Socket.sendfile() on a non-blocking TLS socket would now give up as
    soon as the peer's window filled, so it waits for room and retries, as
    it does for a plain socket.

    Not changed: a script that sends on a non-blocking TLS socket without
    a read event keeps unsent output until its next send, and close()
    discards what the peer has not taken rather than waiting for it.

    Built with MSVC and GCC. On Windows, 600 KB sent to a peer idle for
    20 seconds: longest send() 10.02 s before, 0.019 s after, with every
    byte delivered.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Wed Nov 11 23:15:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/87e5d349ce31d2419bea793e
    Modified Files:
    docs/v322_new.md src/sbbs3/js_user.cpp userdat.c
    Log Message:
    GUEST ARS keyword and user.is_guest now match a not-logged-in user

    user_is_guest() returns true for user number 0 as well as for an account
    with the 'G' restriction. A NULL user (no user context, e.g. jsexec)
    is still not a guest.

    An unauthenticated web server request is evaluated as user number 0,
    which has no restrictions, so an access requirement of "NOT GUEST" on a
    file library or directory was satisfied without a login: the directory
    was listed and served under the web file vpath (e.g. /files/) and no
    HTTP authentication was requested. Such a request now fails "NOT GUEST"
    and gets a 401.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Nov 13 20:36:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/fdf8426de7555abd40f9eec5
    Modified Files:
    docs/v322_new.md src/sbbs3/js_console.cpp
    Log Message:
    js: rename console.ansi() to console.attrstr(), keep ansi() as an alias

    The method returns the attribute sequence for the user's terminal type
    (ANSI, PETSCII, or an empty string for terminals without attribute
    support), not only ANSI. The new name matches the underlying Terminal::attrstr() and the documentation now describes the actual
    behavior.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Nov 13 21:49:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e11b783b6a7846f48cd175c8
    Modified Files:
    docs/v322_new.md src/sbbs3/atcodes.cpp
    Log Message:
    Let @CPS@ take a byte-count format parameter

    @CPS@ now accepts the same optional byte-count format letter as
    @FILE_BYTES@ and @XFER_CPS@ (B, K, M, G or V), e.g. @CPS:V@ for "15.2K". Without a parameter it is unchanged: the rate in bytes per second.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Sat Nov 14 01:20:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/55845c1ea968da4b0aed10a7
    Modified Files:
    docs/v322_new.md src/sbbs3/atcodes.cpp
    Log Message:
    Let @FREESPACE@ take a byte-count format parameter

    @FREESPACE@ (free space in the temp directory) now accepts the same
    optional byte-count format letter as @CPS@ and @FILE_BYTES@ (B, K, M, G or
    V), e.g. @FREESPACE:V@ for "27.8G". Without a parameter it is unchanged:
    the free space in bytes. The FREESPACEK, FREESPACEM, FREESPACEG and
    FREESPACET codes are unaffected.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Windows@VERT to Git commit to main/sbbs/m on Mon Nov 16 21:58:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/6e8fd1d1ed5a73b9a1542431
    Modified Files:
    docs/v322_new.md src/sbbs3/js_file.cpp
    Log Message:
    JS File.position: support offsets beyond 4GB

    The position setter converted the value to a 32-bit unsigned integer (370b79dd7a (2021-04-22)) and both accessors used fseek()/ftell(), so
    a script could neither seek past 4GB in a larger file nor read back
    its position there: an assigned offset silently wrapped modulo 2^32.
    Example: a script walking the atoms of a 37GB MP4 file could not reach
    the "moov" atom stored at the end of the file.

    Take the value as a number and use fseeko()/ftello(). A negative or
    non-numeric value now seeks to the start of the file.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 09:38:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/b17526d9ed681dec30a638aa
    Modified Files:
    docs/v322_new.md src/sbbs3/smbutil.c
    Log Message:
    smbutil: test pack's header allocation result before offsetting it

    Pack added the base's header offset to smb_fallochdr()'s return value
    before testing it for an error. With the usual header offset (32) the
    sum stayed negative, so the message was still skipped but the error
    was logged with the wrong code (e.g. -70 for SMB_ERR_HDR_OFFSET,
    -102). A base with a header offset larger than the error code's
    magnitude would have had the failure go unnoticed and the header
    written at a bogus offset. The header offset is now added only to a
    successful allocation.

    Also note the allocation and chksmb fixes in the v3.22 release notes.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 11:51:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a324eb90f5f5fd77fadded77
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    listfiles(): skip directories with no new files before a List Files module

    In a new-file scan, listfiles() invoked a configured List Files loadable
    module for every directory, before its own (fast) check for new files.
    Starting a JavaScript module costs about 25 ms per directory, so a scan
    of hundreds of directories with few new files took many seconds longer
    with a module than with the built-in lister, for no output.

    The new-file check (and the update of the user's new-file scan time) now
    comes first, and a directory with no new files returns 0 without
    invoking the module. A module is still invoked, with the same arguments,
    for every directory that has new files and for every other kind of
    listing.

    Note for DDFileLister (Nightfox) users: installed as the List Files
    module, it printed "No new files found in <library>: <directory>" for
    each directory without new files during a new-file scan; it is no
    longer invoked for those directories, so those lines no longer appear,
    matching the built-in lister. Its use as the Scan Dirs module is
    unaffected.

    Fixes #1359

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 11:51:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e78f01685b5886283df63c12
    Modified Files:
    docs/v322_new.md src/sbbs3/answer.cpp
    Log Message:
    SSH: range-check the client's terminal width and height

    The width and height from an SSH client's pty-req were accepted as long
    as they were greater than zero, so an SSH client could set dimensions
    (e.g. 1 column, or billions) that the Telnet window-size, ANSI
    auto-detection, JavaScript console and user-setting paths all reject.
    Apply the same TERM_COLS_MIN/MAX and TERM_ROWS_MIN/MAX limits and log
    and ignore an out-of-range value, leaving the default or auto-detected dimension in effect, as for Telnet.

    Also log the width as "width" rather than "height".

    Fixes #1368

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 11:51:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/17f2d9a42922f0c2604629e9
    Modified Files:
    docs/v322_new.md src/sbbs3/sbbsdefs.h
    Log Message:
    Lower the minimum terminal width from 40 to 32 columns

    The Tandy Color Computer 1 and 2 have a 32x16 text screen, and some
    callers use terminal programs at that size. TERM_COLS_MIN gates every
    source of terminal width (Telnet window size, SSH, ANSI auto-detection,
    the user's setting, console.screen_columns), the message editor's
    too-narrow check, and the recorded width putmsg() honors when
    re-wrapping a message, so lowering it lets all of those work at 32-39
    columns.

    Michael Pittsley (JustMike, CoCoNet BBS) ran v3.21e with this change at
    32x16 on a CoCo 2 and found nothing broken: reading and posting
    messages work, and messages posted at 32 columns re-wrap to full width
    when read on wider terminals. Remaining issues are cosmetic (file
    listings, fixed-width lists, and menus without a .c32 variant).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Fri Nov 20 15:25:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/30e82b9600a154489f0fef85
    Modified Files:
    docs/v322_new.md src/sbbs3/websrvr.cpp
    Log Message:
    websrvr: file-area downloads are sent sandboxed and not sniffed

    A file requested from a file area (FileVPathPrefix) was sent with a Content-Type taken from its extension and nothing else. An uploaded
    .html or .svg file, opened through its link, was a page of whatever
    host name the link used: script in it ran with that site's origin and
    could act as the signed-in visitor there.

    Every file-area download now carries

    X-Content-Type-Options: nosniff
    Content-Security-Policy: sandbox

    The sandbox makes the browser treat the file as a document of its own:
    no script, and no access to the site's cookies, storage or pages. The
    file still displays. PDFs get nosniff only, because a browser's built-in
    PDF viewer does not start inside a sandbox. Listings (the index script),
    the rest of the web root and scripts are unchanged.

    Checked on a scratch web server on loopback with an .html, .svg, .pdf
    and .txt file in a file area: without the change none had either
    header; with it the first, second and fourth have both and the PDF has
    nosniff. In headless Firefox the test page's script did not run and the document's origin was "null". Built with GCC only.

    Fixes #1363

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>