• src/sbbs3/nopen.c

    From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Friday, November 15, 2024 16:45:25
    https://gitlab.synchro.net/main/sbbs/-/commit/b9fe6679b94e1bc4dafa6bc3
    Modified Files:
    src/sbbs3/nopen.c
    Log Message:
    Use sopen(... SH_DENYRW) for fmutex() instead of open()

    O_EXCL doesn't appear to be working very reliably over Samba, so let's add
    file locking to the equation.
    --- SBBSecho 3.22-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Friday, November 15, 2024 22:37:59
    https://gitlab.synchro.net/main/sbbs/-/commit/2a4c59134c5de68365babe59
    Modified Files:
    src/sbbs3/nopen.c
    Log Message:
    Fix for Borland C++ build

    Also, don't get hostname unless we're surely going to write to the file.
    --- SBBSecho 3.22-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Monday, November 18, 2024 10:56:33
    https://gitlab.synchro.net/main/sbbs/-/commit/44ce881b07782f3f622d28ea
    Modified Files:
    src/sbbs3/nopen.c
    Log Message:
    We need to initialize the fd to -1 here (since we zero-it out the fmutex_t)

    and might return before setting it to anything else.
    --- SBBSecho 3.22-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Monday, November 18, 2024 11:16:01
    https://gitlab.synchro.net/main/sbbs/-/commit/dec152b4d4ddb260255be6bf
    Modified Files:
    src/sbbs3/nopen.c
    Log Message:
    Fix non-Windows build, broken in previous commit
    --- SBBSecho 3.22-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Tuesday, December 03, 2024 09:10:53
    https://gitlab.synchro.net/main/sbbs/-/commit/11af4bd45489d4a180fb7e6f
    Modified Files:
    src/sbbs3/nopen.c
    Log Message:
    On Windows, lock the opened mutex file to insure *nix sopen() will fail

    Even though we use O_EXCL, networked file systems still sometimes allow the secondary open() to succeed. We use record locking in xpdev's sopen() implementation for *nix, so this lock will insure such opens (and locks) will now fail.

    This is an attempt to address occassional error on Vertrauen:
    ERROR 2 (No such file or directory) renaming *.rep to *.bad
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)