-
src/sbbs3/js_system.c
From
deuce@VERT to
CVS commit on Fri Feb 8 11:17:56 2013
src/sbbs3 js_system.c 1.150 1.151
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18607
Modified Files:
js_system.c
Log Message:
Remove _TO_STRING() macro usage.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ telne
-
From
deuce@VERT to
CVS commit on Fri Apr 26 19:49:49 2013
src/sbbs3 js_system.c 1.151 1.152
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv4406
Modified Files:
js_system.c
Log Message:
Unfuck matchuser() by adding space for terminating NULL and extra invalidating char.
Thanks for the bug reports.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Fri May 10 11:28:00 2013
src/sbbs3 js_system.c 1.153 1.154
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv27446
Modified Files:
js_system.c
Log Message:
Remove accidental debug output.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet
-
From
deuce@VERT to
CVS commit on Sun Sep 29 18:42:38 2013
src/sbbs3 js_system.c 1.154 1.155
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv25351
Modified Files:
js_system.c
Log Message:
Fix system enumeration bug which would prevent enumeration of the system
object from working properly.
Fix up jsdocs. view
http://nix.synchro.net:7070/jsobjs.html and let
us know what else is wrong!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sat Apr 5 23:20:15 2014
src/sbbs3 js_system.c 1.155 1.156
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv17262
Modified Files:
js_system.c
Log Message:
Updated filter_ip method JS DOCS description.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Mon Aug 18 18:14:24 2014
src/sbbs3 js_system.c 1.156 1.157
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv32250
Modified Files:
js_system.c
Log Message:
Address JSDOCS typo reported by Deuce (SYS_* not SS_* for system.settings bit-flag macros).
---
-
From
deuce@VERT to
CVS commit on Fri Aug 21 22:44:29 2015
src/sbbs3 js_system.c 1.159 1.160
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv27136
Modified Files:
js_system.c
Log Message:
Fix warning (cast to 'char *' from smaller integer type 'unsigned int')
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Mon Aug 24 18:59:47 2015
src/sbbs3 js_system.c 1.160 1.161
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv24323
Modified Files:
js_system.c
Log Message:
Fix warnings... this may end up generating different warnings for Win32 though...
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Thu Dec 1 22:15:39 2016
src/sbbs3 js_system.c 1.162 1.163
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16897
Modified Files:
js_system.c
Log Message:
Display progress meter while searching user database.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Oct 22 20:18:57 2017
src/sbbs3 js_system.c 1.163 1.164
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv28116
Modified Files:
js_system.c
Log Message:
system.exec() now throws an exception when passed no/empty command argument.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thu Nov 16 01:41:37 2017
src/sbbs3 js_system.c 1.165 1.166
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_system.c
Log Message:
Noop
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Fri Aug 30 17:08:54 2019
src/sbbs3 js_system.c 1.173 1.174
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv4434
Modified Files:
js_system.c
Log Message:
Add read-only property, system.autodel, which exposes the "Maximum Days of (user) Inactivity" system setting (in days, 0 = disabled).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Mon Mar 23 21:50:06 2020
src/sbbs3 js_system.c 1.176 1.177
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv3865
Modified Files:
js_system.c
Log Message:
Handle getstats() failure with an error exception in the system.stats
"getter".
Don't call getstats() when querying properties that aren't actually
stats (e.g. total_users) - performance optimization.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sun Mar 29 01:01:59 2020
src/sbbs3 js_system.c 1.177 1.178
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16606
Modified Files:
js_system.c
Log Message:
Add system.get_node() method to read a single node record in one shot:
use this in place of system.node_list[] if you're going to be using a lot of the properties and passing them around to methods which are going to each possibly dereference the values, as *each* deference results in a read of the node record in the node.dab. On my system, a simple node list (e.g. /L
command) would result in between 60 and 100 reads of the node.dab (for a 13 node system), which was nuts.
The system.get_node() method currently leaves the node record unlocked and there is currently no equivalent put_node() method, so you still need to use the system.node_list[] for modification of node records. But, I now see there are race conditions with the current methods of read-modify-writes of the node_list[] properties. We should be locking a node.dab record, reading it, modifying it, writing it, and then unlocking it - as is done in the C/C++
code. So... that's a todo item.
Also created system.stats.node_gets to track the number of node.dab reads
from a single instance of the system object. May remove this any time.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue Mar 31 11:32:34 2020
src/sbbs3 js_system.c 1.178 1.179
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv11801
Modified Files:
js_system.c
Log Message:
Add 2 new system properties:
- min_password_length (currently hard-coded to 4)
- max_password_length (currently hard-coded to 40)
Remove 2 unused system properties (nobody uses PostLink/UTI drivers any more): - psname
- psnum
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to sbbs/master on Sun Sep 13 18:20:08 2020
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Wed Dec 2 00:09:17 2020
https://gitlab.synchro.net/main/sbbs/-/commit/e8ffbc856f75449e20409103
Modified Files:
src/sbbs3/js_system.c
Log Message:
Add system.text() method to return text.dat strings
Like bbs.text(), except the "system" object is more widely available (e.g. in JSexec, mail server, web server, services) - in case any text.dat strings are useful in those execution environments tool. Requested by mlong.
Also cleaned up the argument validation in some of these other system methods (throw useful error exceptions rather than just returning false).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Wed Dec 2 01:15:22 2020
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sat Dec 5 18:09:15 2020
https://gitlab.synchro.net/main/sbbs/-/commit/b11d34b07815786b7ea1006e
Modified Files:
src/sbbs3/js_system.c
Log Message:
Fix null pointer deref (crash) in new_user() when "client" object is invalid
When system.new_user() was called but the current "client" object is uninitialized (e.g. has NULL protocol, host or IP address fields because there is no active client, e.g. because is was called from a timed event with active user online) - this code would dereference a NULL pointer and crash the b0rad. Reported by Mortifis.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sat Jan 23 17:45:56 2021
https://gitlab.synchro.net/main/sbbs/-/commit/993466007bac54d784f214dc
Modified Files:
src/sbbs3/js_system.c
Log Message:
Performance enhancement for system.findstr()
The first argument can now optionally be an array of strings (e.g. as read from File.readAll()), so that multiple searches of the same file (e.g. twitlist.cfg, while importing messages) does not require multiple *reads* of the same file.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Apr 4 13:38:22 2021
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Apr 4 15:13:57 2021
-
From
Deucе@VERT to
Git commit to main/sbbs/master on Mon Apr 19 19:50:36 2021
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Aug 8 23:03:19 2021
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tue Jan 4 18:41:48 2022
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Wed Jan 19 20:32:53 2022
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Mar 20 15:05:46 2022
https://gitlab.synchro.net/main/sbbs/-/commit/cf5b2141cc37a211cf241dbd
Modified Files:
src/sbbs3/js_system.c
Log Message:
Use JS_ValueToECMAUint32 for full 32-bit time_t values
Resolves issue with filelist.js trying to pass 4294967295 (-1) to system.datestr() resulting in:
!JavaScript /sbbs/exec/filelist.js line 13: Error: can't convert t to an integer
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Mar 20 16:24:39 2022
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Thu Feb 9 11:50:47 2023
https://gitlab.synchro.net/main/sbbs/-/commit/8635b5105a097d06bfd67444
Modified Files:
src/sbbs3/js_system.c
Log Message:
Allow system.matchuserdata() to search deleted user records
Insert an optional boolean argument to enable a search through deleted and inactive user records (in addition to active user records). This is part of
the solution to the problem described in issue #513 where the UEDIT sysop command did not go to a specified user (by alias) automatically, presumably because the user record was marked as deleted.
---
þ 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 Thu Mar 16 15:06:15 2023
https://gitlab.synchro.net/main/sbbs/-/commit/f3bc58ff48886010b834c040
Modified Files:
src/sbbs3/js_system.c
Log Message:
Rename system.last* to system.last_*, leaving old names as aliases
... to make property names more consistent (e.g. with bbs.last_node).
The old names (without the underscores) are still usable but won't appear
in JSDOCS (i.e. jsobjs.html).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Sun Apr 23 18:59:30 2023
-
From
Rob Swindell (on ChromeOS)@VERT to
Git commit to main/sbbs/master on Sat May 20 15:07:19 2023
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Sat May 27 16:39:57 2023
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Wed Mar 6 22:06:50 2024
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Mon Apr 8 16:32:54 2024
https://gitlab.synchro.net/main/sbbs/-/commit/8108e0cd9e8eb85a7e77fca1
Modified Files:
src/sbbs3/js_system.c
Log Message:
Address MSVC warning and CID 492209 with typecast of time_t to uint32_t
yes, this is a Y2K38 (or Y2106) issue, but we should have that worked out
when upgrading to the next libmozjs.
Need something like NUMBER_TO_JSVAL() and equivalent LAZY_NUMBER macro that
can deal with >32-bit ints correctly (or just always convert to double?).
---
þ 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 Sep 5 19:53:20 2024
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Fri Nov 1 17:16:04 2024
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Sun Jan 12 19:01:43 2025
https://gitlab.synchro.net/main/sbbs/-/commit/1c1dbf2f4c81de575534d8b9
Modified Files:
src/sbbs3/js_system.c
Log Message:
Fix system.datestr(0) returning garbage
Actually use the return value of datestr()
Fixes issue reported by Deuce, regression introduced in commit 490e86fa38c
---
þ 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 Jan 12 19:19:32 2025
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Fri Jan 17 00:57:26 2025
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Fri Jan 17 01:19:51 2025
https://gitlab.synchro.net/main/sbbs/-/commit/4aca71193b32b346abb79448
Modified Files:
src/sbbs3/js_system.c
Log Message:
Add system.birthdate_template string property
Suitable for passing to console.gettemplate() when prompting for a birth date.
I'm using like this in my logon.js to correct corrupted newuser birth dates:
while(user.age < 10) {
console.putmsg(bbs.text(bbs.text.EnterYourBirthday));
user.birthdate = console.gettemplate(system.birthdate_template);
}
---
þ 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 Jan 19 20:34:36 2025
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Sun Jan 19 21:20:50 2025
https://gitlab.synchro.net/main/sbbs/-/commit/43ccc3f02588aa21afcc6132
Modified Files:
src/sbbs3/js_system.c
Log Message:
Fix system.matchuserdata() bug caught by tests/system/rtypes.js on rpi4
Argument count wasn't checked before checking/parsing each optional
argument.
Also noticed/ that the 'match_del' parameter added in commit
e61eb77b91fe didn't advance the argument index, fixed that issue.
---
þ 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 Jan 19 21:39:55 2025
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Mon Jan 20 20:21:07 2025
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Sun Mar 23 23:46:19 2025
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Mon Mar 31 15:28:25 2025
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Thu Apr 10 23:39:24 2025
https://gitlab.synchro.net/main/sbbs/-/commit/7f9b4c1b5ff655f67b274afd
Modified Files:
src/sbbs3/js_system.c
Log Message:
Add new methods: system.check_realname() and system.check_password()
These are wrappers around the userdat API functions, suitable for servers
to do prospective new user string validation.
---
þ 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 Fri Apr 11 18:13:56 2025
https://gitlab.synchro.net/main/sbbs/-/commit/22e2f74de90c845e42486be0
Modified Files:
src/sbbs3/js_system.c
Log Message:
system.check_password() does *not* check password.can file now
We already other means to do that, allowing more visibility to caller *why*
a password may be rejected.
---
þ 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 Jul 6 13:49:57 2025