• src/sbbs3/addfiles.c

    From rswindell@VERT to CVS commit on Tue Mar 12 15:31:00 2019
    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 Tue Mar 12 15:58:00 2019
    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 Fri Mar 15 16:47:00 2019
    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 Thu Jul 18 12:08:46 2019
    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
  • From rswindell@VERT to CVS commit on Sun Aug 11 20:04:08 2019
    src/sbbs3 addfiles.c 1.58 1.59
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv31827

    Modified Files:
    addfiles.c
    Log Message:
    Added -F (capital 'F') option to specify the format of the date/time stamp
    to put in the description (in strftime() format). Can also be used in combination with '-t' if you want today's date/time instead.
    It's not very clear from the help/usage output, but if you specify both -f
    (or -F) and -t, you'll *only* get today's date in the description (not both
    the file date and today's date).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Aug 19 09:21:49 2019
    src/sbbs3 addfiles.c 1.59 1.60
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv21312

    Modified Files:
    addfiles.c
    Log Message:
    Address issue reported by Clogan:
    In *nix builds of addfiles, when adding a file list (e.g. files.bbs), the
    case (capitalization) of the filenames is taken literally from the file list, and that may be incorrect in same cases. Detect the correct case of the filename and use it when importing into the filebases.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon May 11 18:28:42 2020
    src/sbbs3 addfiles.c 1.61 1.62
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv27538

    Modified Files:
    addfiles.c
    Log Message:
    Experimental change for Nelgin:
    this should allow the import of a bare filename list (no descriptions or white-space after each filename required).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Dec 2 15:51:05 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/415c9d79a829fa342a649e5a
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    When adding one file at a time, the description is now optional.

    If no description is given, just make the default/short description, literally, "No description given" - rather than refusing to add the file.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Apr 16 08:32:40 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/492457499648f1c5cd14b4ad
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Fix some crashes on multi-line description import stuff

    Even though this is going to be removed / deprecated.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Apr 16 14:49:39 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/921c349f57428409777ea258
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Fix the file update support a bit.

    This is still broken (errors when updating existing files) and is still planned for deprecation.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Apr 25 15:36:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/057b737eca56dbbe55f2d6b0
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Close stream on error.

    Fixes CID 33498

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Jan 12 14:11:24 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0562a5ac7f52b061ed56872f
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Remove remnants of alternate file path support

    Wouldn't work with the new filebase if you tried to use it anyway. Just noticed while watching the v3.19b new feature video that the [.alt_path] was still listed as a command-line option.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Jan 12 14:34:05 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/4e3e63efa690cc2855d7e085
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Address GCC warning: `%s' directive writing up to 4096 bytes...

    warning: `%s' directive writing up to 4096 bytes into a region of size between 4034 and 4097

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Jan 12 14:40:24 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/f7c6b4b368537952b77bb5a7
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    A couple more sprintf->SAFEPRINTF conversions

    Not sure why, as this utility has been deprecated. :-/

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Mar 3 11:45:56 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3ab210cbd551966d6828ddb9
    Modified Files:
    src/sbbs3/addfiles.c
    Log Message:
    Fix a few issues around single-file add argument parsing

    Triggered by CID 33630: Unbounded source buffer

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