1. 02 Jun, 2022 2 commits
    • Rob Swindell's avatar
      Address warnings and errors introduced in *nix build from previous commit · d4b5eea9
      Rob Swindell authored
      Also a bit more constification and cleared up the legacy sbbs_get_ini_fname()
      usage: the hostname argument hadn't be used in a long, long time.
      d4b5eea9
    • Rob Swindell's avatar
      Decompose some library files to enable reuse by SVDM (virtual DOS modem) · 92bcd45e
      Rob Swindell authored
      I just wanted to reuse findstr() in vdmodem.c and I fell down this hole :-)
      
      findstr.* is new (findstr() related functions moved from str_util)
      getctrl.* is now finally the real home of get_ctrl_dir(), moved from str_util
      trashcan* functions moved from str_util to scfglib
      other scfg_t dependent functions moved from str_util to scfglib
      
      net_addr() appears to be a function that was never created/used (?)
      
      This will definitely break the *nix build, for now.
      92bcd45e
  2. 01 Jun, 2022 7 commits
  3. 31 May, 2022 3 commits
  4. 30 May, 2022 3 commits
    • Rob Swindell's avatar
      Store the UART register/settings in a struct for easy re-init · 3ba5aa8d
      Rob Swindell authored
      Re-init the UART struct in the init routine to avoid confusion when making .ini file changes with older NTVDMs (including NTVDMx64) which don't re-load the VDDs for every invocation.
      3ba5aa8d
    • Rob Swindell's avatar
      Enable experimental sbbsexec modes (e.g. redir DOS I/O) · d375556d
      Rob Swindell authored
      Added undocumented experimental options -I and -O to enable DOS input and output interception modes in sbbsexec (e.g. to be used possibly with '-h'). Also -M to specify sbbsexec mode value by number (e.g. 3 to enable DOS Input/Output redir).
      
      Added '-n' option to specify node number (probably no real value/need).
      
      Safe string formatting.
      d375556d
    • Rob Swindell's avatar
      Resolve the socket protocol/address family issues with IPv4 vs. IPv6 · a6d7c580
      Rob Swindell authored
      When listening, the address family cannot be PF_UNSPEC, so default to PF_INET (IPv4), when not specified.
      Not sure why we're setting ai_flags to PF_UNSPEC (copied from syncterm) - that's just 0, but otherwise the PF_ and AI_ flags are not compatible.
      Don't set the ai_flags to anything here since they don't seem to change the behavior.
      a6d7c580
  5. 28 May, 2022 2 commits
    • Rob Swindell's avatar
      Send a "banner" when accepting incoming connections. · d7b1f25e
      Rob Swindell authored
      Fix a corner case where an invalid command-mode escape sequence (e.g. "+.+.+") could've been interpreted as valid.
      d7b1f25e
    • Rob Swindell's avatar
      Fix port parsing in dial string · 198ef67f
      Rob Swindell authored
      More case-insensitivity in parsing special "number" values (e.g. 'L' for last number).
      
      Default to Telnet mode (not Raw TCP).
      Default to unspecific address family (not IPv4).
      Case-insensitive "-telnet" and "-raw" option recognition.
      198ef67f
  6. 27 May, 2022 2 commits
  7. 25 May, 2022 1 commit
  8. 24 May, 2022 9 commits
  9. 19 May, 2022 1 commit
    • Rob Swindell's avatar
      Fix loop limit (system.stats.total_users != system.lastuser) · ddd4d10b
      Rob Swindell authored
      When looping to highest user number, use system.lastuser, not
      system.stats.total_users.
      
      This explains why not all userbases would be affected by the just-fixed
      issue in js_user.c. If the total_users happens to equal lastuser, then
      you would have hit the issue in js_user.c. If you had at least one
      deleted or inactive user account, then system.stats.total_users would
      be less than system.lastuser and your system would *not* have triggered
      that bug.
      ddd4d10b
  10. 18 May, 2022 1 commit
    • Rob Swindell's avatar
      Fix User.number increment beyond lastuser issue · 65e93897
      Rob Swindell authored
      When the 'number' property of an instance of User was incremented beyond the last user, the call to fgetuserdat() on subsequent property 'get' operation would fail and zero-out the user structure (including the user number). This resulted in an infinite loop in load/birthdays.js where the user number would go from lastuser to 1 in one operation (u.number++).
      
      Reported by DesotoFireflite (VALHALLA)
      65e93897
  11. 17 May, 2022 7 commits
  12. 16 May, 2022 2 commits