BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/prntfile.cpp
De:       Rob Swindell (on Debian L
Data:     Sat, 31 Jan 2026 15:22:00 -0800
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/1bea7cc6aa25b656c070fd57
Modified Files:
	src/sbbs3/prntfile.cpp
Log Message:
Use fread() instead of read() to printfile (in P_OPENCLOSE mode)

After reading a file's SAUCE record and seeking around (with fseek), a read()
(on the file *descriptor*, not the stream) will fail, but only on *nix.
Use fread() instead of read() to fix this.

This fixes issue #1060, bug recently introduced in commit 29213fde9f24d62b7e20
(reading/using SAUCE records in display files). Thanks Keyop! I had a few of
these errors recently logged as well but chalked it up to something
ephemeral and not reproducible. It was 100% reproducible.
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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