• src/xpdev/xp_syslog.c

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sunday, December 01, 2024 22:11:46
    https://gitlab.synchro.net/main/sbbs/-/commit/dbc2b45f30e3256d2817c510
    Modified Files:
    src/xpdev/xp_syslog.c
    Log Message:
    Eliminate unused variable
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, March 15, 2026 16:01:53
    https://gitlab.synchro.net/main/sbbs/-/commit/2f1c39f3e483920a5b8e62f2
    Modified Files:
    src/xpdev/xp_syslog.c
    Log Message:
    Fix two bugs in xp_syslog.c

    1. fputs() arguments swapped in xp_vsyslog() LOG_PERROR path:
    fputs(stderr, msg_to_send) passes the FILE* as the string and
    the string as the FILE*, causing a crash when LOG_PERROR is set.

    2. xp_syslog() calls native vsyslog() instead of xp_vsyslog(),
    bypassing the custom log_host UDP syslog functionality on Unix.
    On non-Unix platforms, vsyslog may not exist at all.

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