• src/sbbs3/filedat.c js_filebase.c src/smblib/smbfile.c smblib.h

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Friday, September 13, 2024 21:31:53
    https://gitlab.synchro.net/main/sbbs/-/commit/09d721d429e3df4e978dfdc9
    Modified Files:
    src/sbbs3/filedat.c js_filebase.c src/smblib/smbfile.c smblib.h
    Log Message:
    Add/use smb_removefile_by_name()

    This fixes a filebase corruption issue that could be triggered by using FileBase.update() to rename a file while also changing the file's auxdata or extended description: you can't remove a file header that has the new filename (in the file_t.name field), cause it doesn't exist yet. So we needed an SMBLIB API function to pass the (original) filename instead. Much like the filedat.c removefile() function, but without the SMB opening/closing feature.

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