Skip to content
Snippets Groups Projects
  1. Jun 04, 2023
    • Rob Swindell's avatar
      Fix warnings raised by gcc -D_FORTIFY_SOURCE=3 -O1 · 8667e329
      Rob Swindell authored
      A bunch of possible (but often, not really) use of undefined values.
      Some ignored return values (e.g. of chsize/ftruncate, read, write, fgets).
      
      Other than some added diagnostics upon some of these unexpected syscall
      failures, there should be no change in behavior from this commit.
      8667e329
  2. Feb 19, 2023
  3. Feb 16, 2023
    • Rob Swindell's avatar
      Report correct upload/download Kbytes in data/logs/<date>.log files · 04e3bb9a
      Rob Swindell authored
      After the move to 64-bit upload/download byte counts, these integers are different width than 'long' on 32-bit builds (e.g. Windows), so these numbers were wrong on all but 64-bit *nix builds.
      
      The change here also uses the cool byte_estimate_to_str() function so that large byte totals are not expressed in 'K' but rather 'M', 'G', 'T' etc. suffixes.
      
      The formatting is otherwise consistent with the pre-existing log line format save for the use of an uppercase suffix now.
      
      Before:
      @- 02:19p  T: 12   R:  0   P:  0   E:  0   F:  0   U:  0k 0   D:420k 1
      After:
      @- 02:07p  T:  0   R:  0   P:  0   E:  0   F:  0   U:  0K 0   D:420K 1
      
      Before:
      @- 02:23p  T:  0   R:  0   P:  0   E:  0   F:  0   U:  0k 0   D:1359k 1
      After:
      @- 02:26p  T:  1   R:  0   P:  0   E:  0   F:  0   U:  0K 0   D:1.3M 1
      
      This fixes issue #519. I'm glad to hear that sysops still use these log files!
      04e3bb9a
  4. Jan 30, 2023
    • Rob Swindell's avatar
      The 3rd great MQTT data scheme update (sorry Nelgin) · e94281e6
      Rob Swindell authored
      - Most published messages (besides log entries) have a timestamp (in ISO8601 format) prepended and tab-separated
      - The order and number of elements in client messages (list and activities) has been updated, now includes user number
      - Server client lists are now published to .../SERVER/client/list
      - Server client activities (connect, disconnect, update) are now published to .../SERVER/client/action/#
      - Server client count is now published to .../SERVER/client (with the maximum client count, if applicable)
      - Server states are now just represented by name (e.g. initializing, ready, stopping, stopped) and not number
      - BBS errors are logged to sbbs/BBS/action/error/LEVEL (where LEVEL is the log level name, e.g. "critical" or "error')
      - All server hack-attempts, SPAM attempts, logins, logouts, uploads, downloads, are published to sbbs/BBS/action/ACTION/*
      - Chat pages are published to sbbs/BBS/action/page/node/#
      - New users (on the terminal server) are published to sbbs/BBS/action/newuser
      - Posted messages and executed external programs (on the terminal server) are published to sbbs/BBS/action/ACTION/CODE topic
      - The event thread started/stopped status is published to .../SERVER/event
      
      Yeah, the wiki will get updated soon to reflect/document all these changes
      e94281e6
  5. Oct 20, 2022
  6. Oct 18, 2022
    • Rob Swindell's avatar
      Full read/write support of new user.tab userbase file · 8a22b246
      Rob Swindell authored
      Also resolved some 32 vs 64-bit 'long' issues/ambiguities that have long-remained. :-)
      
      This commit also removes logon.lst file support.
      
      There's a TODO block remaining in js_user.c for setting portions of a user's birthdate (e.g. just the year or month or day).
      8a22b246
  7. Apr 25, 2022
  8. Apr 19, 2021
    • Rob Swindell's avatar
      Control sound-mute via semfile (ctrl/sound.muted) rather than sbbs.ini · df1fbd1e
      Rob Swindell authored
      There was a bug with reloading the configuration files in sbbsctrl where the sound button no longer reflected the truth and the sysop's previous click-state of the button was lost. Rather than going through writing the OPT_MUTE flag to the Options fields of all the sections of the sbbs.ini and then re-loading that file as a result, just do like we did with the sysop chat availability: use a semfile. So much simpler.
      
      If anyone ever needs instance-specific muting, we can create/check instance/host-specific mute semfiles then. Doubt that'll happen though.
      
      Also, removed the old sysavail control methods of ntsvcs too.
      df1fbd1e
  9. Apr 18, 2021
    • Rob Swindell's avatar
      Update sound (WAV) file play-on-event support in Windows build · b1d61c14
      Rob Swindell authored
      A "hack attempt" sound file is now supported in the Terminal Server, Mail Server,  and Services.
      
      "login" and "logoff" sound files are now supported in the Terminal Server, FTP Server, Web Server, Mail Server, and Services.
      This enhancement fixes Issue #157
      
      The following sound files may now be configured in the [Global] section of the ctrl/sbbs.ini file, if desired to set the default sound files for all servers/services in on place:
      - AnswerSound
      - LoginSound
      - LogoutSound
      - HangupSound
      - HackAttemptSound
      b1d61c14
  10. Apr 04, 2021
    • Rob Swindell's avatar
      A poll() failure with EINTR does not mean a socket is closed. · 925e3b0a
      Rob Swindell authored
      This won't impact Synchronet as it has a separate signal handling
      thread, but we still need to behave properly for processes that
      don't.  I'm also saying that ENOMEM does not indicate a disconnection,
      though it may be better to pretend it was disconnected...
      925e3b0a
  11. Dec 21, 2020
  12. Nov 05, 2020
  13. Aug 16, 2020
  14. May 05, 2019
  15. Oct 06, 2018
    • rswindell's avatar
      Don't call putmsgptrs() from logout() unless the SS_USERON sys_status flag · e63bf13b
      rswindell authored
      is set: this insures that uninitialized msg-scan ptrs/cfg won't be
      written to disk unless a successful logon()/getmsgptrs() was called first.
      This probably fixes the sighting that echicken reported where a failed
      SSH login caused his sub-scan config file (data/user/0001.subs) to contain
      uninitialized/garbage values.
      logout() could be called from multiple places (e.g. JS and Baja modules),
      even before a successful login is completed, so this sighting is not
      entirely impractical.
      e63bf13b
  16. Jul 25, 2018
    • rswindell's avatar
      sbbs_t::lputs() now handles the adding of the log message prefixes · 9e0fcab8
      rswindell authored
      ("Node X", user alias, etc.) - so removing a lot of the redundancies.
      Also, logging the current timed event code and other prefixes in the
      event thread log messages - something I've wanted for a while now.
      There might be some redundant "Node X" strings, so if you see some funny
      looking log message, please let me know.
      9e0fcab8
  17. Feb 20, 2018
  18. Nov 30, 2015
    • rswindell's avatar
      Introduce new node status (NODE_LOGOUT), which is used for the status of a node · 1d847ed3
      rswindell authored
      after a user (has been) disconnected and before the node transitions to waiting
      for connection (WFC) status. Usually the duration of this status is very short,
      but it can be longer (e.g. for running log-out module and event) and for (new)
      msg-scan pointer fix-ups.
      Updated logout() to remove some cruft and add some more log/debug output.
      Automatic new-scan pointer fix-ups when performing new-message scans (if the
      current pointer is greater than the last message number, set it to the last
      message number) and when saving message pointers.
      Passing user_t* to get/putmsgptrs() instead of message number now (to better
      detect Guest account).
      1d847ed3
  19. Nov 27, 2015
  20. Oct 19, 2011
  21. Mar 06, 2010
  22. Mar 20, 2009
  23. Jul 11, 2007
  24. Sep 20, 2005
  25. Feb 23, 2004
  26. May 22, 2003
  27. Feb 01, 2003
  28. Jan 31, 2003
  29. Nov 13, 2002
  30. Aug 22, 2002
  31. Mar 13, 2002
  32. Jan 28, 2002
  33. Oct 02, 2001
  34. Sep 05, 2001
  35. Jun 15, 2001
  36. Mar 25, 2001
Loading