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');
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'.
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.