1. 23 May, 2021 1 commit
    • Rob Swindell's avatar
      Use int64_t instead of la_int64_t · 92fa411c
      Rob Swindell authored
      Resolve error reported on irc with Ubuntu (don't know what version):
      <rjwboys> ok now i get filedat.c:896:3: error: unknown type name ‘la_int64_t’
      92fa411c
  2. 16 May, 2021 2 commits
  3. 13 May, 2021 3 commits
  4. 05 May, 2021 1 commit
  5. 04 May, 2021 1 commit
  6. 03 May, 2021 1 commit
  7. 02 May, 2021 1 commit
    • Rob Swindell's avatar
      Store contents (list) of archive files in filebase (in the "msg tail") · 5374a113
      Rob Swindell authored
      This will allow fast/easy display of archive contents without actually reading the archive files.
      
      Introduces some new functions:
      - list_archive_contents()
      - smb_adddfile_withlist()
      
      A new SMB convenience variable ("tail", aliased as "content" for a file).
      A new file detail level ("file_detail_content", exposed in JS as FileBase.DETAIL.CONTENTS) which adds a "content" array property to file metadata objects for JS FileBase.get().
      
      Files already added to the new filebases won't have this archive content automatically - I'm looking into that now (likely a new or updated JS script to run).
      5374a113
  8. 25 Apr, 2021 1 commit
  9. 24 Apr, 2021 1 commit
    • Rob Swindell's avatar
      DIZ enhancements: Read/use SAUCE data, support ANSI, increase max 1->4K · 2a8e1c11
      Rob Swindell authored
      Inspired by Blocktronics (and other ANSI art group) packs' FILE_ID.DIZ/ANS files:
      * Support (and prioritize) FILE_ID.ANS
      * Convert ANSI color/attribute sequences in DIZ files to Ctrl-A equivalent (uses SAUCE width and ICE color, if specified)
      * Don't treat DIZ as a series of lines, they're not always nowadays.
      * New putmsg() mode: P_INDENT to print files indented by current column
      * Display full (up to 64-char) filenames in lists when using 132+ column terminal.
      * Use the Author, Group, and Title fields from the SAUCE if present/non-blank
      * 2 new text.dat strings: 301 (FiAuthor) and 302 (FiGroup)
      * Also fix bug with repeated Cost header field on bulk-uploaded files.
      
      I know this'll break the *nix build (sauce.c dependency), but I'll fix that next.
      2a8e1c11
  10. 22 Apr, 2021 2 commits
  11. 21 Apr, 2021 1 commit
  12. 17 Apr, 2021 1 commit
    • Rob Swindell's avatar
      Restore the user-to-user file transfer feature · bc883458
      Rob Swindell authored
      I forget who it was that said they were still using this feature in v3.18, but here you go, it's working again (the /D and /U commands). I'm not migrating any file sender/recipient info from v3.18, so only files added after upgrading to this will be downloadable from the "user" directory (if you have one).
      
      Something that I never implemented before but noticed is missing is the removal (or dereferencing) of user-to-user files that were sent from/to a user that is then deleted. So that's still a TODO item.
      bc883458
  13. 08 Apr, 2021 1 commit
    • Rob Swindell's avatar
      Sorted loadfiles() results were corrupted when detail was < normal · 4391ca75
      Rob Swindell authored
      When only reading the index (detail = file_detail_index), smb_getfile() just sets the file->name convenience pointer to point to the name in the index. Then when loadfiles() would sort the list, these pointers would not be adjusted (so they would point to the wrong names) resulting in a corrupted file list (e.g. name/size mismatches and no logical sort order).
      
      The solution is to call smb_getfile() on each file *after* the read index records have been sorted.
      
      This also means that the sort-by-name routines needed to always sort using the index name and not the convenience pointer (which is NULL in this case).
      
      While fixing this, I noticed there was no bounds checking in the loadfiles() and loadfilenames() read-loops, so if the indexes happened to be longer than the total_files value from the status header, a buffer under-alloc/overflow would occur and a likely crash as a result. So stop reading the index when the expected maximum number of index records have been read.
      4391ca75
  14. 04 Apr, 2021 2 commits
  15. 23 Nov, 2020 1 commit
    • Rob Swindell's avatar
      The great C function dependency refactor of 2020 · c6808b3f
      Rob Swindell authored
      The goal of this commit is that: only modules that either are part-of sbbs.dll/libsbbs.so or need to link with/use that library, will #include "sbbs.h" and thus be dependent on its subsequent includes (e.g. cryptlib.h, jsapi.h). This should mean extdeps.mk can be trimmed way down.
      
      I also removed CVS keyword/comments and trimmed up the boilerplate copyright notice in modified and added source/header files in this commit.
      
      There is no functional change in behavior in this comment.
      c6808b3f
  16. 01 Nov, 2020 1 commit
  17. 16 Aug, 2020 1 commit
  18. 12 Jan, 2019 1 commit
    • rswindell's avatar
      Optimized getfiledat(): · 09f5e87e
      rswindell authored
      rather than calling both flength() and fdate() (which both call stat()), just
      call stat() once and use the result for both file size and date/time.
      09f5e87e
  19. 17 Mar, 2018 1 commit
  20. 20 Feb, 2018 1 commit
  21. 03 Jun, 2017 1 commit
  22. 19 Oct, 2011 1 commit
  23. 06 Aug, 2011 1 commit
  24. 06 Mar, 2010 1 commit
  25. 11 Jun, 2009 1 commit
  26. 20 Mar, 2009 1 commit
  27. 04 Jun, 2008 1 commit
  28. 27 Jan, 2008 1 commit
  29. 25 Aug, 2007 1 commit
  30. 08 Jul, 2007 1 commit
    • deuce's avatar
      64-bit · 92cb0a97
      deuce authored
      92cb0a97
  31. 29 Dec, 2006 1 commit
  32. 20 Sep, 2005 1 commit
  33. 13 May, 2005 1 commit
  34. 07 May, 2005 1 commit
  35. 30 May, 2004 1 commit