BBS:      TELESC.NET.BR
Assunto:  src/syncterm/wren_bind_sftp.c
De:       Deuc¨
Data:     Tue, 28 Apr 2026 19:37:46 -0700
-----------------------------------------------------------
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) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]