Skip to content
Snippets Groups Projects
  1. Jan 15, 2024
    • Rob Swindell's avatar
      Fix the recently-added NODE_USER @-code · ad12b9b2
      Rob Swindell authored
      Since "NODE*" is a match for a node number status (ugh), and this comparison
      happened before the comparison for "NODE_USER", we'd never hit that condition.
      Thought I tested this before original commit, but I guess I did not. Oops.
      ad12b9b2
    • Rob Swindell's avatar
      Don't expand @-codes automatically for all node messages/telegrams saved · 9b1a34b3
      Rob Swindell authored
      This recent enhancement (Commit b27bd426) introduced security and usability
      concerns.
      
      So I created (and am now using where requested) a wrapper for formatting
      text.dat/ini strings which will automaticlaly detect @-code encoded strings
      and expand/use them *only* (instead of printf %-specifiers).
      
      This might impact issue #696 since although unintentionally, it actually was
      possible to mix @-codes and %-specifier usage in certain (node status)
      text.dat/ini strings, but that should not be possible now. It's either/or:
      @-codes or %-specifiers, not both.
      9b1a34b3
  2. Jan 13, 2024
    • Rob Swindell's avatar
      New @-code NODE_USER which will expand to UNKNOWN_USER if node is anonymous · 01401754
      Rob Swindell authored
      Needed for exactly reproducing built-in node status string formatting using
      @-codes (only).
      01401754
    • Rob Swindell's avatar
      Allow @-codes in text.dat strings: NodeLoggedOnAtNbps and NodeLoggedOff · 97adde25
      Rob Swindell authored
      Note: format specifiers (e.g. %s) cannot be combined with @-codes (use one or
      the other, not both).
      
      Fixes issue #696
      
      If you need additional text strings to support @-codes, you'll have to specify
      them explicitly in feature request issues.
      97adde25
    • Rob Swindell's avatar
      Check for shutdown and recycle semaphores even while clients are connected · 63d0772d
      Rob Swindell authored
      We have checks/loops/timeouts waiting for active clients to disconnect and
      child thread threads to terminate whenever shutting down or recycling already,
      so this should be safe. This pretty simple change fixes issue #236 (can't
      terminate server under heavy load).
      
      Also as part of this commit, introduced the ability to "pause" a server
      (prevent it from accepting new connections) with the ctrl/pause semaphore
      file or via the MQTT server/pause (and resume) topics. This feature is useful
      when debugging server issues where you don't necessarily want to fully
      shutdown/terminate the server, but don't want any new connections to be
      accepted (the listen backlog will fill up with incoming connections though).
      Unlike a server shutdown, a server pause can be "undone" via MQTT (by
      publishing a message to the "resume" topic).
      
      The "pause" semaphore file is just an "existence" semaphore file - its
      date/time stamp doesn't matter. If the file exists, the server will enter
      a paused state (and periodically log messages to that fact) until the semfile
      is deleted.
      
      This server pause feature is not the same as the pause button function in
      sbbsctrl, which just pauses server log output.
      63d0772d
  3. Jan 11, 2024
  4. Jan 10, 2024
    • Rob Swindell's avatar
      Restore ftpalias.cfg support for MLSx commands · bb4ccdaa
      Rob Swindell authored
      Support was accidentally removed as part of commit 0d01544d, meaning
      the ftpalias.cfg wasn't used at all in responses to the MLSx commands as
      reported by Max (WESTLINE) using Total Commander, FileZilla and Directory
      opus. The traditional "LIST" commands still worked fine with ftpalias.cfg
      contents just fine.
      
      The reason this code was accidentally removed was due to the errant
      copy/pasted comparison with startup->html_index_file that did not belong here
      and made the block appear related to HTML index file generation. It was not.
      This was just a bug in the initial implementation of MLSx support in
      commit d4deb4b3.
      
      Also included in this commit:
      - Return the date/size of the user's QWK packet file, if it exists, in MLSx
        response.
      - send_mlsx_entry() won't report negative time_t values as file modify dates
       (flength returns -1 upon failure/file-not-found).
      - get_owner_name() returns the string, making it easier to use in function
        calls.
      
      There appears to still be some work to do to make the MLSx commands fully
      compliant with RFC 3659 (e.g. "mlst filename" from ftpalias.cfg should work
      but does not), but at least FileZilla displays ftpalias.cfg files and
      directories correctly now.
      bb4ccdaa
  5. Jan 09, 2024
  6. Jan 08, 2024
  7. Jan 06, 2024
  8. Jan 05, 2024
  9. Jan 04, 2024
  10. Jan 03, 2024
  11. Jan 02, 2024
  12. Jan 01, 2024
Loading