Skip to content
Snippets Groups Projects
  1. Jul 12, 2024
  2. Jul 11, 2024
  3. Jun 21, 2024
    • Rob Swindell's avatar
      Fix new small memory leak (no need to use strdup here) · 726a0852
      Rob Swindell authored
      Fix CID 497098
      726a0852
    • Rob Swindell's avatar
      Fix getnodedat() error handling and usage · e7642321
      Rob Swindell authored
      If a file descriptor is passed to getnodedat() and the lock retry counter was
      reached, the file would be closed, but the passed file descriptor reference
      would not be set to -1. This could result in exceptions (from subsequent read
      attempts on the referenced file descriptor) in cases where the node.dab could
      not be locked or read by getnodedat() and was thus closed.
      
      The set/get_node_* helper functions (used by MQTT) were not initializing the
      node.dab file descriptor (i.e. to -1), so it's possible getnodedat() could
      try to read from and close an invalid/wrong open file descriptor. If the local
      variable happened to be initialized to a value <= 0, then, no problem, but
      this is undefined behavior (UB).
      e7642321
    • Rob Swindell's avatar
      Use the new uifc_t.restore() method when decrementing the save_num · 16525f87
      Rob Swindell authored
      This is the proper way to manually-restore the most recently saved
      window (via the WIN_SAV mode flag to the list() method).
      
      I wanted something that was backward comaptible with earlier builds
      of SBBS, so just doing a magic thing when decrementing the save_num
      rather than adding a new method seemed the seamless way to do it.
      16525f87
    • Rob Swindell's avatar
      Introduce a restore() uifc_api method for restoring a saved window buffer · 1c85a913
      Rob Swindell authored
      This allows for menu options on an "active" list (with both WIN_SAVE and
      WIN_ACT mode flags) to close the window and restore the most recently saved
      window.
      
      Also, for the range check on the save buffer count in ulist(), if we've
      hit the bounds, don't *just* beep (though, that was useful), but turn off the
      WIN_SAV mode flag so we don't overflow the sav[] array and corrupt the heap!
      1c85a913
    • Rob Swindell's avatar
      Pretend we know the screen width and that it's 132 columns wide · 687a6731
      Rob Swindell authored
      ... for UIFC apps/scripts that have screen-width dependant behavior.
      687a6731
    • Rob Swindell's avatar
      Fix small memory leak when loading lib "Auto-Add Subs" feature enabled · 26920170
      Rob Swindell authored
      caught by valgrind
      26920170
  4. Jun 20, 2024
  5. Jun 19, 2024
    • Rob Swindell's avatar
      Use new uifc.list mode flag WIN_BLANKOPTS · 91059084
      Rob Swindell authored
      uifc option lists are always NULL-terminated string lists (not static
      arrays of char arrays, as is often used in other UIFC utils), so grow
      the ability to have blank options (list items).
      
      This was needed for fileman.js to accurately edit extended file
      descriptions that contain blank lines.
      91059084
    • Rob Swindell's avatar
      Add WIN_BLANKOPTS list() option, to support options/lists with blank lines · 521e0f48
      Rob Swindell authored
      This requires that the option list be NULL-terminated, when used.
      
      For use with js_uifc.c (JS uifc.list method).
      
      For some reason, this exposed an issue where "(null)" would be printed for
      the last line when combined with WIN_XTR mode flag, so worked around that
      bug too.
      521e0f48
  6. Jun 18, 2024
    • Rob Swindell's avatar
    • Rob Swindell's avatar
      FileBase.add() now supports override to *never* extract/use DIZ if desired · 946e42d6
      Rob Swindell authored
      Working on fileman.js, when moving files to another base, the output of unzip
      (trying to extra a FILE_ID.DIZ) was corrupting the display. We don't really
      want a DIZ file to get imported when moving files between bases anyway.
      
      So the second parameter to FileBase.add() can be either:
      - undefined: will try to extract/use DIZ only if there's no ext desc already
      - true: will try to extract/use a DIZ even if there's an ext desc already
      - false: will never try to extract/use a DIZ
      
      If the directory is not configured for DIZ support, then the DIZ extraction/use
      will never occur under any condition.
      946e42d6
    • Rob Swindell's avatar
      Add suport for option/item tagging using the WIN_TAG ulist() mode flag · de7b2c60
      Rob Swindell authored
      For use with fileman.js:
      
      The space bar can be used by the user to "tag" items, or Ctrl-A to toggle
      tag status for *all* items. Returns MSK_TAG|with the option tagged/untagged
      or MSG_TAGALL when all tags are being toggled (via ^A).
      
      Also, fix bug where ^Find command would not restore the status bar after
      ulist() would overwrite it with the string-input/edit hot-keys available.
      de7b2c60
    • Rob Swindell's avatar
      Make filebase status output less confusing ("file" not "msg") · c8f60b06
      Rob Swindell authored
      Cosmetic change only, output of 'smbutil s' command when used on a filebase.
      
      Increment the SMBUTIL version from 3.19 to 3.20
      c8f60b06
  7. Jun 15, 2024
  8. Jun 10, 2024
  9. Jun 09, 2024
  10. Jun 04, 2024
  11. Jun 02, 2024
  12. May 28, 2024
Loading