• src/build/Common.gmake src/sbbs3/ftpsrvr.cpp mailsrvr.cpp main.cpp sbb

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Dec 2 23:17:52 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3400d321e2fb1861c9c2cfa7
    Modified Files:
    src/build/Common.gmake src/sbbs3/ftpsrvr.cpp mailsrvr.cpp main.cpp sbbs.h sbbscon.c services.cpp websrvr.cpp
    Log Message:
    Remove the LinuxThreads setuid workaround (_THREAD_SUID_BROKEN)

    Under LinuxThreads each thread was a separate process with its own
    credentials, so a setuid() in one thread did not change the others. Every
    Linux build defined _THREAD_SUID_BROKEN (unless built with THREADS_ACTUALLY_WORK) to have each server thread switch its own uid, and
    to keep root's credentials around so servers on ports below 1024 could
    still be recycled.

    glibc replaced LinuxThreads with NPTL in 2.4 (2006), and since
    d1aaf12ac2 (yarn-3-said, 2006-08-28) sbbscon has cleared
    thread_suid_broken at startup whenever glibc reports NPTL, so none of
    this code has run on a supported glibc system since. The CMake build
    never defined it.

    Remove the define, the THREADS_ACTUALLY_WORK make option, the thread_suid_broken variable and every branch on it. A non-root sbbscon
    now always drops root fully, as it already did with NPTL.

    libsbbs.so no longer exports thread_suid_broken, so the sbbs binary must
    be rebuilt together with it (a plain make does both).

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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