• src/syncterm/wren_bind_sftp.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Tuesday, April 28, 2026 19:37:46
    https://gitlab.synchro.net/main/sbbs/-/commit/415a9d1e69921973a171e09c
    Modified Files:
    src/syncterm/wren_bind_sftp.c
    Log Message:
    SyncTERM: stub Wren SFTP foreigns under WITHOUT_DEUCESSH

    WITHOUT_DEUCESSH drops the SSH transport (and therefore SFTP) but
    wren_bind.c's BINDINGS table and lookup_class still reference the
    SFTP allocators / finalizers / methods. Without DeuceSSH the body
    of wren_bind_sftp.c can't compile at all (sftp.h lives in src/ssh,
    which the makefile doesn't add to the include path in that config).

    Wrap the body in #ifndef WITHOUT_DEUCESSH and provide stubs in the
    #else branch. SFTP.available reports false (so well-behaved scripts
    skip the subsystem entirely); the rest of the SFTP class methods
    abort the calling fiber. Per-instance accessors are unreachable
    since instances can't be constructed in this build, but they still
    need symbols for BINDINGS to link.

    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 Sunday, May 03, 2026 06:45:55
    https://gitlab.synchro.net/main/sbbs/-/commit/c28fff71ba1927b26d1db9db
    Modified Files:
    src/syncterm/wren_bind_sftp.c
    Log Message:
    SyncTERM: include <genwrap.h> in wren_bind_sftp.c for strlcpy

    The defensive-copy of fn_SFTP_setMtime's path uses strlcpy. On
    FreeBSD it's in libc's <string.h>, but on platforms where libc lacks
    it (glibc) the prototype lives in xpdev/genwrap.h. Build error
    caught on a non-FreeBSD host.

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

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