• exec/load/cnflib.js

    From rswindell@1:103/705 to CVS commit on Tue Jan 16 20:31:45 2018
    exec/load cnflib.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14391

    Modified Files:
    cnflib.js
    Log Message:
    A few changes:
    * Don't set File.etx when reading .cnf files. strings are null-terminated
    in *.cnf files.
    * Don't open files shareable - they are not. This could explain .cnf file
    corruption when using this library.
    * read() and write():
    - If passed just the .cnf filename, get the full path automatically
    If not passed a 'struct' argument, figure it out from the filename
    * Make the CNF object the last statement so that this library may be loaded
    into its own scope using: var cnflib = load({}, 'cnflib.js');


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Mar 5 16:26:21 2018
    exec/load cnflib.js 1.11 1.12
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20879

    Modified Files:
    cnflib.js
    Log Message:
    When writing a configuration string record (to a .cnf file), if the
    struct field is not defined, write a zero-len string instead of 'undefined'.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun Mar 15 01:47:52 2020
    exec/load cnflib.js 1.14 1.15
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv15194

    Modified Files:
    cnflib.js
    Log Message:
    Make the write() method more tolerant of a script that is in the process
    of being terminated (e.g. user hitting Ctrl-C in jsexec) - don't open
    and truncate the .cnf file if we're going to exit with an exception
    anyway and likely leave a 0-byte .cnf file behind.



    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Thu Jul 14 17:52:28 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/5615e656c54bb68df068c735
    Modified Files:
    exec/load/cnflib.js
    Log Message:
    Strip 0xff chars from strings read from .cnf filesSome unused/padding bytes are
    written as 0xff, so don't build strings fromthose chars.
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)