• src/sbbs3/addfiles.c

    From rswindell@VERT to CVS commit on Tuesday, March 12, 2019 17:31:20
    src/sbbs3 addfiles.c 1.54 1.55
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22042

    Modified Files:
    addfiles.c
    Log Message:
    Moved the copy/pasted FILE_ID.DIZ/DESC.SDI code (3 times!?!) into its own function.
    Constify mycmdstr() arguments.
    Removed trailing whitespaces.
    No functional changes expected by this commit.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, March 12, 2019 17:58:42
    src/sbbs3 addfiles.c 1.55 1.56
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25490

    Modified Files:
    addfiles.c
    Log Message:
    When extracting FILE_ID.DIZ/DESC.SDI, search through the exractable file
    types twice - first to see if one matches the requirements. If none match,
    then search again just for an extractor matching the file extension.
    Modernize the get_file_diz() function a little bit (e.g. return bool).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, March 15, 2019 18:47:01
    src/sbbs3 addfiles.c 1.56 1.57
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv19513

    Modified Files:
    addfiles.c
    Log Message:
    When adding a listfile (e.g. files.bbs), be a bit more strict:
    - filenames must begin with an alpha-numeric char. Might want to relax this in
    the future if it's a problem, but generally filenames on BBSes do begin with
    alpha-numeric characters and this will help us to identify an ignore
    "garbage" filenames in listfiles.
    - always check if the file actually exists, even when parsing the length of
    the file from the listfile. This will also help us to ignore garbage
    filenames.
    - also removed an inexplicable unpadfname() call. Filenames in file lists
    should *not* normally be padded (like "this .txt") - so I'm not sure why
    this was in there. Perhaps for lists generated from filelist.exe (?). Anyway,
    out of an abundance of caution, removed it. Padded filenames are going away.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 18, 2019 14:08:46
    src/sbbs3 addfiles.c 1.57 1.58
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv5277

    Modified Files:
    addfiles.c
    Log Message:
    Fix DIZ-importing bug introduced in rev 1.55 Mar 13 2019 by rswindell: get_file_diz() was reading the contents of the DIZ/SDI file into a local variable and not returning it or writing to the database. Poof!
    Also, read the existing extended description if there is one, when updating existing files.



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