• src/smblib/smbfile.c

    From rswindell@VERT to CVS commit on Tue Apr 14 00:08:50 2020
    src/smblib smbfile.c 1.16 1.17
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv25844

    Modified Files:
    smbfile.c
    Log Message:
    Don't retry/loop in smb_fread(), regardless of the errno value, if we're at the end of the file.


    ---
    þ 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 Tue Sep 17 12:06:15 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/45363fee6f6d688671faeee0
    Modified Files:
    src/smblib/smbfile.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 509552

    Use strnicmp() insted of stricmp() in smb_removefile()
    Fixes CID 509551

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