BBS:      TELESC.NET.BR
Assunto:  src/xpdev/xp_syslog.c
De:       Deuc¨
Data:     Sun, 15 Mar 2026 16:01:53 -0700
-----------------------------------------------------------
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 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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