• src/sbbs3/sbbscon.c

    From rswindell@VERT to CVS commit on Fri Mar 7 16:54:13 2014
    src/sbbs3 sbbscon.c 1.250 1.251
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28492

    Modified Files:
    sbbscon.c
    Log Message:
    * Eliminated the sbbs.ini [BBS] Options flag: USE_2ND_RLOGIN
    - this option has been a default option flag for 10 years
    - this option was introduced *before* the RLogin password capability
    - Synchronet now always expects the login-ID (alias) to be the 2nd string received during RLogin connections (called 'server-user-name' in RFC 1282).

    ---
    þ Synchr
  • From rswindell@VERT to CVS commit on Wed Nov 12 02:50:22 2014
    src/sbbs3 sbbscon.c 1.251 1.252
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv9369

    Modified Files:
    sbbscon.c
    Log Message:
    Create a "running" named mutex (on Win32 only) for use by Inno Setup install program to detect a currently running instance of sbbs.exe.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Sun Feb 22 23:12:58 2015
    src/sbbs3 sbbscon.c 1.252 1.253
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv7183

    Modified Files:
    sbbscon.c
    Log Message:
    Remove "support" for SBBS_MAGIC_FILENAMES



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Mon Mar 2 13:16:19 2015
    src/sbbs3 sbbscon.c 1.253 1.254
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv12149

    Modified Files:
    sbbscon.c
    Log Message:
    Fix typo in help output reported by PSI-Jack.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Sat Aug 22 00:07:37 2015
    src/sbbs3 sbbscon.c 1.255 1.256
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv31256

    Modified Files:
    sbbscon.c
    Log Message:
    Fix warnings.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sun Aug 30 20:03:27 2015
    src/sbbs3 sbbscon.c 1.256 1.257
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv30926

    Modified Files:
    sbbscon.c
    Log Message:
    Enancement for ragnarok:
    If "syslog" is passed as a command-line option, always send log output to syslog, even when not daemonized.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Fri Dec 4 13:38:49 2015
    src/sbbs3 sbbscon.c 1.257 1.258
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv29983

    Modified Files:
    sbbscon.c
    Log Message:
    Change the name of an unused argument - whee!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 15 23:53:32 2016
    src/sbbs3 sbbscon.c 1.258 1.259
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28203

    Modified Files:
    sbbscon.c
    Log Message:
    Set the main thread name to "sbbs" instead of "Main", this string would show
    up in 'top' output and provide some confusion.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sat Jun 3 17:54:14 2017
    src/sbbs3 sbbscon.c 1.262 1.263
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    sbbscon.c
    Log Message:
    1. Fixed "always syslog" mode Used to force log output to syslog even when
    not daemonized: log output would be repeated (once with a timestamp in
    the log string, once without). Now direct calls to lputs/lprintf from
    sbbscon.c won't go to syslog (in this mode), but I think that's okay.
    2. Change the prompt when terminating the servers: replace the ?=help and
    colon implying you can enter commands with just "Termianting..." since
    you can't actually type commands while a terminate is in progress.
    3. Output the inactivity timeout values when waiting for servers to
    terminate (e.g. because they'res till in use).
    4. Report IP addresses in square-brackes in the client ('c' command) output
    to differentiate from hostnames.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sun Jan 14 11:49:40 2018
    src/sbbs3 sbbscon.c 1.264 1.265
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22885

    Modified Files:
    sbbscon.c
    Log Message:
    Resolve gcc warning: sbbscon.c:38:0: warning: "_GNU_SOURCE" redefined


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Mar 16 11:32:09 2018
    src/sbbs3 sbbscon.c 1.265 1.266
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24591

    Modified Files:
    sbbscon.c
    Log Message:
    Fix WTF indentation and braces.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Mar 16 23:45:18 2018
    src/sbbs3 sbbscon.c 1.267 1.268
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26607

    Modified Files:
    sbbscon.c
    Log Message:
    Stat the status thread much later.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Sat Mar 17 00:57:41 2018
    src/sbbs3 sbbscon.c 1.268 1.269
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv1921

    Modified Files:
    sbbscon.c
    Log Message:
    Fix reported service for stat_*() callbacks.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Mar 17 20:48:38 2018
    src/sbbs3 sbbscon.c 1.269 1.270
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv18961

    Modified Files:
    sbbscon.c
    Log Message:
    Move all the remaining status_startup bits inside the #ifdef __unix__ block since it's not defined otherwise. Not sure if this ways intended to be
    included in Windows builds or not.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Jan 7 16:13:06 2019
    src/sbbs3 sbbscon.c 1.272 1.273
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/jsdocs/src/sbbs3

    Modified Files:
    sbbscon.c
    Log Message:
    Build with main() rather than CIOLIB_main() if either JSDOCS_BUILD or
    WITH_SDL are not defined. This should fix JSDCOS builds for those without libsdl1.2-dev installed - but really, you want SDL installed to get the
    full docs, I think.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Mar 30 21:32:48 2019
    src/sbbs3 sbbscon.c 1.273 1.274
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv32459

    Modified Files:
    sbbscon.c
    Log Message:
    Added warning log messages when disabling server recycle support due to
    Linux system limitations and user/port configurations of sbbs.
    Add some parens around bit-wise "and" (&) checks too.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Sep 1 17:52:45 2019
    src/sbbs3 sbbscon.c 1.275 1.276
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17757

    Modified Files:
    sbbscon.c
    Log Message:
    Leave the node file (node.dab) open.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Mar 22 17:37:24 2020
    src/sbbs3 sbbscon.c 1.277 1.278
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv28985

    Modified Files:
    sbbscon.c
    Log Message:
    Clean-up some of this USE_LINUX_CAPS patch, but honestly, I think it's
    time for it to go away. Using 'sudo setcap sbbs' during build seems like the better, more supported solution.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Mar 22 18:45:52 2020
    src/sbbs3 sbbscon.c 1.278 1.279
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6632

    Modified Files:
    sbbscon.c
    Log Message:
    Only do the whole Linux-capabilities dance when run as root (user-id 0).
    This eliminates the error messages that would be displayed/logged when attempting the SYS_capset SYSCALL, which fails when not root.

    So the capabilities dance enabled with USE_LINUX_CAPS (which is automatically enabled when /usr/include/sys/capabilites.h exists, which is installed with
    the libcap2-dev package) apparently is still useful if you need to start
    sbbs as root: the main thread will remain as root even when the child
    threads have their user-id's changed to the user specified in the [UNIX] section of sbbs.ini or on the command-line
    - so reducing the enabled privilege set for this root/main thread to the minimum needed, is a good security measure. It does this reduction (call to linux_minprivs() after the call to change_user()) so I'm not exactly sure how that works, but according to Deuce, this is what's happening. :-/


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Apr 13 14:36:19 2020
    src/sbbs3 sbbscon.c 1.279 1.280
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25670

    Modified Files:
    sbbscon.c
    Log Message:
    Add "version" command-line option to display version/revision details (ala the SBBSCTRL "About" dialog box) and then exit.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Aug 2 20:30:27 2020
    src/sbbs3 sbbscon.c 1.280 1.281
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22134

    Modified Files:
    sbbscon.c
    Log Message:
    Print the target architecture of sbbs along with the target platform/OS
    (e.g. Linux-armv6 for rPi).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tue Mar 1 20:30:39 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/eb160a3f20c0af8d60e6ecd0
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Document case fall-through

    Reported by Coverity
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Apr 9 11:34:48 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/c2ebe8edd6a02759bed4f8f8
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Only remove the pid file if it has our pid in it.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Mon Jun 12 12:09:01 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/c831eb434f3fc9acd86e8163
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    More consistent logging of errno value (and descriptions)

    Should use safe_strerror() here instead... later.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Mon Jun 12 17:05:41 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a4bc8a827e1b0a944ff48693
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    This is exactly the sort of race condition pthread_once() is for.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 12 15:24:26 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/58e8b4b538250073237affe4
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Easier to over-ride sbbs.ini AutoStart settings via command-line options

    To enable a server that's disabled in the sbbs.ini file, just use the <server>+ option (e.g. 't+' to enable the terminal server). To run *only* that server (and no other servers), use the '<server>!' option (e.g. 'w!' to run *only* the web server).
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 23 13:55:55 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/bed33851d21f05ae63ec6f62
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Free scfg before exiting to calm down valgrind() about memleaks from here
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Dec 23 14:32:47 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/7b5a7bdf0592a8b82ec48fbc
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Call sbbs_free_ini() during happy-path exit, to calm down valgrind

    This was not a real leak, but still, good practice
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Sat Jan 18 18:34:17 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/474ecc554b7eaaeb875fd001
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    Fix JSDOCS WITH_SDL build.

    Apparently, whatever was making this not link before has been fixed,
    and so this workaround was breaking it.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Thu Mar 27 18:50:18 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/325334ccba2366d6ef68e73c
    Modified Files:
    src/sbbs3/sbbscon.c
    Log Message:
    If sbbs is passed a directory, use that as a the ctrl-dir (to find sbbs.ini)

    To be consistent with how sbbsctrl.exe works
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net