• src/sbbs3/smbutil.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, March 12, 2022 21:09:16
    https://gitlab.synchro.net/main/sbbs/-/commit/07580ea7b1b6e204c4c5400b
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Display textual version of msg attributes when using 'r'ead command

    Also displays net and aux attribute values when non-zero (weren't displayed
    at all with the 'r'ead command previously).
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, March 12, 2022 23:21:15
    https://gitlab.synchro.net/main/sbbs/-/commit/4b5a75c3ae3f207e6cc71cbd
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Address warnings introduced in previous commit
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, March 13, 2022 00:26:38
    https://gitlab.synchro.net/main/sbbs/-/commit/5ee74077200205a13bbbf60c
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Fix CID 350312: Uninitialized scalar variable
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, September 09, 2024 18:29:23
    https://gitlab.synchro.net/main/sbbs/-/commit/d84b8e3d6c917620ab0c8a3c
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Indicate vote/poll messages and files (with details) when listing msgs/files

    Add '-v' (increase verbosity) option, used to display msg dates and timezones ... when using the the 'l' (list messages) command (to view post date/time). Use '-vv' or '-v -v' to see timezones of messages.

    The -v option is now also applicable to the 'v' (view) messages command (now redundant with the 'V' command).

    Features as requested by Nelgin as part of issue #786.

    Removed day-of-week from date/times displayed. We don't need that level of user-friendliness with this tool.
    However, we are also displaying 12h/am/pm times. Some sysops probably would prefer 24hour time, so that should be considered at some point.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Tuesday, September 17, 2024 12:06:15
    https://gitlab.synchro.net/main/sbbs/-/commit/daa1b7882234d005c0b2a3ea
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    NUL-terminate the SMB fileidxrec_t.name field, just in case

    The terminating NUL is actually part of the index record, but with file corruption, it's technically possible the NUL could be missing.

    Fixes CID 509554
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, January 16, 2026 20:16:08
    https://gitlab.synchro.net/main/sbbs/-/commit/783f80855c13873c76054e26
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Fix index corruption resulting from packing an unmaintained msg base

    and filebase corruption.

    Bug was introduce in v3.19 with the filebase support:
    - we were assuming the newly packed (rebuilt) index had the same record offsets
    as the original/source index (if any records are skipped, e.g. because they
    are deleted, they offsets aren't the same, so you end up with an index (.sid)
    file that's too big and thus fails chksmb verification
    - we weren't reading the entire file base index record so packing a filebase
    would corrupt the index

    Bumped version to 3.21
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, February 13, 2026 00:34:20
    https://gitlab.synchro.net/main/sbbs/-/commit/c322f624d537025462d70da5
    Modified Files:
    src/sbbs3/smbutil.c
    Log Message:
    Rename msgbase files *before* packing to insure exclusive access

    Even with the *.lock file created exclusively, there's still a race condition where other processes could have the msgbase files open in which case the
    final rename (e.g. from *.sd$ to *.sdt) would fail with an error and you'd end up with a mix of files from before and after the pack operation.

    This rename-first operation insures we're the only ones with the msgbase open and since we have it locked, no one else should be able to open subsequently either.

    Updated the temp filename extenions to 4 chars now, so the operation goes like this:

    ren pack ren
    [*.shd/sdt/sid] -> [*.shd_/sdt_/sid_] -> [*.shd$/sdt$/sid$] -> [*.shd/sdt/sid]

    Commented out the "duplicate index" message which was wrong (it's the header that's duplicate, not the index) and a perfectly normal situation for mail
    msgs to multiple recipients.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net