• src/sbbs3/ftpsrvr.cpp

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Nov 22 02:36:22 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/cf61b24879c7527ce99b248b
    Modified Files:
    src/sbbs3/ftpsrvr.cpp
    Log Message:
    FTP Server: log a dropped TLS control connection as a notice

    A TLS client that disconnects without closing the session makes
    cryptPopData() fail with CRYPT_ERROR_READ or CRYPT_ERROR_WRITE, which recverror() reported as "!ERROR: recv on socket returned unexpected
    value: -42" at warning level. A camera uploading over FTPS produced
    dozens of these a day.

    Log those two statuses as "TLS connection lost on receive" at notice
    level, like the other peer disconnects. Other cryptlib statuses are
    still reported as unexpected.

    Identify the client in every recverror() message: <alias> once logged
    in, [ip-address] before. They carried only the socket number.

    Drop the "!ERROR" marker from the two recverror() messages logged
    below error severity (#1396).

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Nov 22 02:36:22 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3c0be493e7711da9db5e7d5b
    Modified Files:
    src/sbbs3/ftpsrvr.cpp
    Log Message:
    FTP Server: refuse MKD for a directory that does not exist

    MKD from a user without upload rights always answered 257 "directory
    created (not really)". A client that then could not CWD into the
    directory it was told exists would create it again: a camera sent
    MKD/CWD 318 times a session, in most of its sessions.

    Answer 257 only when the path names an existing library or directory
    the user can see, and 550 otherwise.

    The unconditional 257 dates from b4a4a52416 (2025-02-14).

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Sun Nov 22 12:16:31 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/fa0f8430d53000d1356daf9a
    Modified Files:
    src/sbbs3/ftpsrvr.cpp
    Log Message:
    FTP Server: identify the client correctly before login; redact PASS

    Five log lines in the control thread printed "<%s>" with the user's
    alias or, before login, the client's address, putting an IP address in
    the angle brackets reserved for a user name. Use the control thread's
    client-id string instead: [ip-address] before login, <alias> after.

    The received-command debug line (FTP_OPT_DEBUG_RX) logged PASS
    commands verbatim. Log "PASS <redacted>" unless the sysop has chosen
    to log passwords (SM_ECHO_PW), as the mail server does.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)