• src/smblib/smballoc.c

    From rswindell@VERT to CVS commit on Wednesday, November 15, 2017 22:23:54
    src/smblib smballoc.c 1.9 1.10
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/home/rswindell/sbbs/src/smblib

    Modified Files:
    smballoc.c
    Log Message:
    Change for freeing msg header and data storage: when not in hyper-alloc
    mode, a freeing of header or data storage at the end of the file will now result in the file (the allocation file *and* the data/hdr file) being truncated - saving potentially many megabytes of disk space for
    non-maintained msg bases (e.g. the mail base). Previously, self-packing
    and fast-alloc msg-bases would never shrink without running smbutil m,
    but that's now no longer true.

    Something similar could be done for hyper-alloc msgbases, but I'm not sure that's really needed since the email base can never be hyper-allocated and
    this change was really for the email msgbase where allocation files are a
    must due to the multiple-recipients/headers per msg data feature.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, November 16, 2017 14:47:36
    src/smblib smballoc.c 1.10 1.11
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv12252

    Modified Files:
    smballoc.c
    Log Message:
    Fix msvc warning.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, November 21, 2017 15:32:23
    src/smblib smballoc.c 1.11 1.12
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv1315

    Modified Files:
    smballoc.c
    Log Message:
    smb_freemsgdat() [called by smb_freemsg_dfield() and smb_freemsg()]
    and smb_incmsg_dfields(), now lock and unlock the SMB header.
    This shouldprevent some mail base corruption as well as this error:
    -203 (smb_incmsgdat 13 'Permission denied' reading allocation record at offset 795568) incrementing data allocation units


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Thursday, November 05, 2020 00:02:18
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/6e2726e92871a4797f3d2d0f
    Modified Files:
    src/smblib/smballoc.c
    Log Message:
    Fix warning on 32-bit Linux build with large file support enabled (64-bit off_t)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, March 02, 2022 13:25:51
    https://gitlab.synchro.net/main/sbbs/-/commit/c2d6c7c28c7c6b038d7a5c47
    Modified Files:
    src/smblib/smballoc.c
    Log Message:
    Detect/reject negative offset argument values to smb_freemsgdat()

    ---
    þ 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 Sunday, December 24, 2023 17:33:28
    https://gitlab.synchro.net/main/sbbs/-/commit/98e60c4f7886b243e3948b77
    Modified Files:
    src/smblib/smballoc.c
    Log Message:
    Place error description in smb->last_error in smb_freemsghdr()

    A couple of failure conditions from this function (e.g. SMB_ERR_HDR_LEN)
    would not write an error descripton to smb->last_error. Now fixed.

    Noticed this when debugging echicken's reported FileBase.renew() issue.

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