• src/sbbs3/data_ovl.cpp userdat.c userdat.h

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Thu Sep 12 13:58:46 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/20cfdb185e469b22ec9152ff
    Modified Files:
    src/sbbs3/data_ovl.cpp userdat.c userdat.h
    Log Message:
    Split-up the opening and writing of msg pointer files, to help debug issue

    Reported by Keyop (upon being auto-disconnected overnight):
    !ERROR 9 (Bad file descriptor) in data_ovl.cpp line 47 (putmsgptrs) writing "message pointers" access=0

    Unfortunately, the way putmsgptrs() was written, we couldn't tell if this was an open (data/user/*.subs file) issue or a writing issue.

    So create putmsgptrs_fp() and use that from sbbs_t::putmsgptrs(), so we can
    log a different error (with more accurate details) if it's a file-open failure versues a file-write failure.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)