• src/sbbs3/main.cpp str.cpp userdat.c

    From Rob Swindell@VERT to Git commit to sbbs/master on Tue Sep 15 00:09:36 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/9ac720d0168cab074ba4ad0e
    Modified Files:
    src/sbbs3/main.cpp str.cpp userdat.c
    Log Message:
    Fix observed crash on a fresh install (no data/user.dat) on Windows XP

    Apparently, calling close(-1) on WinXP will cause a crash. Don't do that.
    Make closeuserdat() resilient to an un-open file descriptor and use it
    instead of close().

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net