• src/sftp/sftp_client.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Tue Dec 26 22:49:56 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/d6888b0d1aeffb8484f79e34
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Fix allocation size of client state

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri Dec 29 18:26:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/eff862f8d7d15983484a282b
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Handle unlikely case where sftpc_finish() is called while waiting
    and before the first response.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Dec 30 06:54:40 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/4e642286acfb6c8076d12723
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Fix return value of enter_function()

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Dec 30 10:28:33 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/4377da0cc1bb15fa42162585
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Fix some locking issues

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Tue Nov 5 14:48:41 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/7dc93a672283caf22560886a
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Don't retypedef sftpc_state_t for ancient compilers

    (ie: gcc 4.4)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sat Mar 14 18:14:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/678a9471557ba4c43e11ab77
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    Free error information in sctpc_end()

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Fri Apr 24 23:01:06 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2710c20e54f8a1affdcfb024
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    sftp: drop pthread_key TLS for last-error, store on state struct

    pthread_key_create / pthread_setspecific / pthread_getspecific are not
    shimmed by xpdev/threadwrap.h (only pthread_mutex_* is), so sftp_client.c
    did not build on Win32 or any other non-pthreads target. Replace the TLS
    slot with a plain uint32_t last_error field on struct sftp_client_state; state->mtx already serializes every op, so no new lock is needed. Public
    API (sftpc_get_err and the bool returns from sftpc_open/read/write/etc.)
    is unchanged.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Fri May 1 09:47:56 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/977697e41fc2c88f6417d4b0
    Modified Files:
    src/sftp/sftp_client.c
    Log Message:
    sftp client: eager-bail per parse step in parse_readdir

    Restructure the readdir entry-parse loop so each of the three calls
    (filename getstring, longname getstring, fattr getfattr) is
    followed immediately by its NULL check, rather than running all
    three before checking any of them. On corrupt input this skips
    one or two doomed parses on the wreckage of the failing one, and
    the PENDING_RECORD error string now identifies which of the three
    steps failed and which entry of N Ä much easier to triage than the
    old "getstring/getfattr failed at entry N" generic.

    No on-the-wire change.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

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