- 12 Apr, 2020 1 commit
-
-
rswindell authored
(new) scfg_t.text member. This will make it much easier for non-Terminal Server JS modules (and the functions they execute) make use of the text.dat strings.
-
- 08 Apr, 2020 1 commit
-
-
rswindell authored
globally and per-module. Command-line options still take precedence. For jsdoor builds, jsdoor.ini is supported in whatever directory jsdoor is run from. Changed the default log level from Debug to Informational. (If you need the old default, set LogLevel=debug in your ctrl/jsexec.ini file).
-
- 03 Jan, 2020 1 commit
-
-
rswindell authored
not set (or blank), use the default ("/sbbs/ctrl") and print a warning to stderr. This resolves a FAQ for sysops that struggle with setting the SBBSCTRL env var, but do have sbbs install in /sbbs or a symlink from /sbbs to where sbbs is actually installed. Note: this function is different than the one previously defined in getctrl.c but never used. If/when we ever really need to support PREFIX, then perhaps we'll use that one (which copies a string to a buffer).
-
- 02 Sep, 2019 1 commit
-
-
deuce authored
scfg.prepped = TRUE scfg.tls_certificate = -1 scfg.sys_inetaddr = "example.com" scfg.sys_name = "JSDoor" scfg.sys_pass = "ThisIsNotHowToDoSecurity"
-
- 29 Aug, 2019 1 commit
-
-
deuce authored
created in the global scope when when a scope is passed to load(), require() or js.exec(). While having 'var x = 0;' and 'x = 0;' put x in different scopes is bad, we actually want them all in the passed scope, not the global scope... and that's not an option. It looks like js.exec() will actually need to set scope as the global object and add a second global object to the original scope.
-
- 27 Aug, 2019 2 commits
- 08 Aug, 2019 1 commit
-
-
rswindell authored
already creates the dirs that were of concern (Transfser File Paths). May want to DLL-export this and call from here later.
-
- 06 Aug, 2019 1 commit
-
-
rswindell authored
be sure all necessary dirs are created.
-
- 29 May, 2019 1 commit
-
-
deuce authored
-
- 20 Jan, 2019 2 commits
-
-
rswindell authored
because the stdout FILE* is a different address in jsexec than it is in sbbs.dll (where the actual File I/O operations occurred). Refactored by passing the stdio file descriptor (and open mode) to js_CreateFileObject rather than the FILE* and using fdopen() to get a FILE* associated with the descriptor. stdout.write() now works, for example.
-
rswindell authored
parameter value and no value was supplied (e.g. 'jsexec -c'), a null pointer dereference would cause the program to crash. Also display more helpful error if option parameter value is missing.
-
- 12 Dec, 2018 1 commit
-
-
rswindell authored
- include errno description (strerror output) - exclude (redundant) node number
-
- 22 Oct, 2018 1 commit
-
-
rswindell authored
-
- 06 Apr, 2018 1 commit
-
-
rswindell authored
::lprintf() usage.
-
- 09 Mar, 2018 1 commit
-
-
rswindell authored
-
- 08 Mar, 2018 1 commit
-
-
deuce authored
-
- 20 Feb, 2018 2 commits
-
-
rswindell authored
-
rswindell authored
HANDLE_PENDING() contains a return, so it's theoretically possible that the memory allocated by the previous JSVALUE/STRING_TO_... allocation could be leaked. So now we pass an optional pointer to HANDLE_PENDING() which will call free() on it if it's not NULL, and then sets it to NULL for good measure.
-
- 14 Feb, 2018 1 commit
-
-
rswindell authored
-
- 12 Jan, 2018 1 commit
-
-
rswindell authored
- This option instruts JSexec to *not* change the current working directory to the control (CTRL) directory - This is useful when using jsexec to deal with files and passing relative paths or wildcards on the command-line - Warning: scripts executed with this option may behave differently than the same script executed from SBBS where the current working directory is always the CTRL directory.
-
- 06 Jan, 2018 1 commit
-
-
rswindell authored
-
- 30 Dec, 2017 3 commits
-
-
rswindell authored
Not defined in MSVC2013. Appears to work again/still.
-
deuce authored
-
deuce authored
input on Windows (e.g. the prompt() method no longer worked) broke JSDoor, and caused Windows and Linux console input to behave differently. Create functions to cook/thaw the tty, and call them around stdin things. This change was related to his postpoll.js work, so that might be broken now.
-
- 28 Nov, 2017 1 commit
-
-
rswindell authored
an errorneous exit (and trigger the -! pause on error).
-
- 27 Nov, 2017 1 commit
-
-
rswindell authored
would be no pause on exit. Now we insure an error level of (at least) 1 if the script execution fails for any reason.
-
- 13 Nov, 2017 2 commits
- 15 Nov, 2016 1 commit
-
-
rswindell authored
console input on Windows (e.g. the prompt() method no longer worked). This change was related to his JSDoor work, so that might be broken now.
-
- 21 Jan, 2016 1 commit
-
-
deuce authored
the constructor things. This allows TLS-enabled services to work correctly, and removes an ugly hack from the web server. There's still an odd issue with the NNTP service when using TLS though.
-
- 05 Dec, 2015 1 commit
-
-
deuce authored
to stdout). Previous behaviour was: 1) By default, send error messages to errfp (stderr), and other log messages to confp (stdout). 2) If -e and one of -o or -q are specified, also send a copy of error messages to statfp (defaults to stderr, changed to /dev/null by -n) 3) If -e is specified, also send a copy of error messages to confp (defaults to stdout) If -e, -o, were both specified, this resulted in an error log entry going into the file specified by -e, the file specified by -o, and confp (stdout by default). New behaviour: 1) By default, send error messages to errfp (stderr), and other log messages to statfp (stderr). 2) If -e is specified, send error messages to the specified file and statfp (stderr). 3) Always send status messages to statfp (stderr). Set up some more stuff for jsdoor... Call gethostname() since there is no "SCFG value" for it. Send "status messages" (log messages that aren't errors, and the banner) to /dev/null by default (ie: force the "-n" argument) Send "error messages" (log messages that are error according to log level) to "error.log" by default (ie: force the "-eerror.log" argument)
-
- 25 Nov, 2015 2 commits
- 16 Nov, 2015 1 commit
-
-
deuce authored
broken on *nix now.
-
- 14 Nov, 2015 1 commit
-
-
deuce authored
-
- 10 Nov, 2015 2 commits
- 29 Oct, 2015 1 commit
-
-
deuce authored
Use jsdoor_revision* instead.
-
- 28 Oct, 2015 1 commit
-
-
deuce authored
-