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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net