Skip to content
Snippets Groups Projects
  1. Jan 23, 2024
  2. Jan 22, 2024
  3. Jan 21, 2024
  4. Jan 20, 2024
  5. Jan 19, 2024
  6. Jan 18, 2024
    • Deucе's avatar
      Don't give names to events. · c2bcb2b6
      Deucе authored
      It looks like Windows actually uses the name for matching existing
      events, so if two events have the same name, they end up being the
      same object.
      c2bcb2b6
    • Deucе's avatar
      Make CerateEvent() prototype on *nix compatible with Win32 · 690a9634
      Deucе authored
      On Win32, the name param is an LPCSTR which apparently is Microsoft
      talk for const char *.
      
      In C we're allowed to do whatever we want, but in C++, this matters
      more.
      690a9634
    • Deucе's avatar
      Whoops, missed this bit. · 8c276ee8
      Deucе authored
      Just running git commit --amend doesn't do -a it seems. :)
      8c276ee8
    • Deucе's avatar
      Move SSH authentication into answer() · ba2608b1
      Deucе authored
      This should fix a long-standing issue where someone could connect to
      the SSH port and do nothing, which would prevent other incoming
      terminal sessions from being accepted until it times out.
      
      Unfortunately, this means that Synchronet can't send any data until
      authentication is completed, which means useful messages about why
      you're being disconnected (ie: "Sorry, all terminal nodes are in use or otherwise unavailable.")
      as well as usless information nobody ever cares about (ie: The IP
      you're connecting from, that it is resolving your hostname, etc).
      can no longer be sent to the user.
      ba2608b1
  7. Jan 17, 2024
  8. Jan 16, 2024
    • Rob Swindell's avatar
      Fix issue with "Pause Logging" buttons not staying pressed in sbbsctrl-win32 · eb9c3519
      Rob Swindell authored
      Reported by Max (WESTLINE)...
      
      Introduced in commit 75c5c9e5, since we are now calling the set_state()
      callback periodically, and in sbbsctrl, it sets/resets the pause button
      checked (depressed) state in response to this callback (should it?), this was
      resetting the pause button checked/depressed state peridically (at the
      configured sem file check interval, default 2 seconds).
      
      The fix: if the new server state is the same as the previously set server
      state, don't call the set_state() callback. I considered this as a potential
      optimization when I first wrote that commit, but didn't see any obvious
      downside to calling the set_state() callback redundantly. Now that I see a
      downside, let's implement this saving/checking of the state to avoid
      redundant "set" calls.
      eb9c3519
    • Rob Swindell's avatar
      If socket is closed while in sess_sendbuf(), don't log a warning message · 04705b6c
      Rob Swindell authored
      ... with a socket descriptor value of -1.
      04705b6c
    • Rob Swindell's avatar
      Fix hungry-matching of "NODEx" @-code · 57decbd2
      Rob Swindell authored
      The 5th character must be a digit.
      
      Prevent future stupidity such as happened with recently added and then
      fixed NODE_USER @-code.
      57decbd2
  9. Jan 15, 2024
    • Rob Swindell's avatar
      Fix the recently-added NODE_USER @-code · 0639add9
      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.
      0639add9
    • Rob Swindell's avatar
      Don't expand @-codes automatically for all node messages/telegrams saved · 839c3a31
      Rob Swindell authored
      This recent enhancement (Commit 61a3ab2d) 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.
      839c3a31
Loading