- Apr 13, 2021
-
-
Rob Swindell authored
CID 331092
-
Rob Swindell authored
-
- Apr 12, 2021
-
-
Rob Swindell authored
It's a wrapper for filedat.c -> format_filename() which can truncate and pad a filename for display purposes.
-
- Apr 08, 2021
-
-
Deucе authored
-
Deucе authored
Prevents weird issues with getting remote address.
-
Rob Swindell authored
When only reading the index (detail = file_detail_index), smb_getfile() just sets the file->name convenience pointer to point to the name in the index. Then when loadfiles() would sort the list, these pointers would not be adjusted (so they would point to the wrong names) resulting in a corrupted file list (e.g. name/size mismatches and no logical sort order). The solution is to call smb_getfile() on each file *after* the read index records have been sorted. This also means that the sort-by-name routines needed to always sort using the index name and not the convenience pointer (which is NULL in this case). While fixing this, I noticed there was no bounds checking in the loadfiles() and loadfilenames() read-loops, so if the indexes happened to be longer than the total_files value from the status header, a buffer under-alloc/overflow would occur and a likely crash as a result. So stop reading the index when the expected maximum number of index records have been read.
-
- Apr 07, 2021
-
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
Adds from/tags/desc/extdesc properties, even when absent or blank. When parsing a file object, set the from, desc, tags and cost properties only if they already have been set or the new values is non-blank/0.
-
Rob Swindell authored
-
Rob Swindell authored
So just always assume that no "user" directory has been configured. At least for now while I ponder whether this is a feature worth restoring and if so, how.
-
- Apr 06, 2021
-
-
Deucе authored
Previously, these both used gettimeofday() which is both expensive to call, and not monotonic. This fixes system.clock_ticks in JS and various internal bits. for when the UTC wall clock jumps. While we're here, fix the documention of system.clock_ticks
-
Rob Swindell authored
-
Rob Swindell authored
-
Rob Swindell authored
-
Deucе authored
-
Deucе authored
-
Deucе authored
-
Rob Swindell authored
warning: format not a string literal and no format arguments
-
- Apr 05, 2021
-
-
Rob Swindell authored
Caught by CID 331001 The use of SAFECAT() with a typecast to a pointer is not going to work as expected. This change broke line-based telnet-gateway functionality (unconfirmed, but pretty obvious).
-
Deucе authored
Likely the cause of the crash that killed cvs.synchro.net last night
-
Deucе authored
-
Deucе authored
-
Deucе authored
Specifically, have errors mean the fd is "ready". Also, fix some extra revent clearing and a spy socket issue while we're looking at this code. Should fix issues with CGI scripts that close stdin/stdout but do not terminate, and maybe deal with some other corner cases at the same time.
-
Deucе authored
-
Deucе authored
-
Deucе authored
Tabs are the shit.
-
Rob Swindell authored
For easier use of the auto-generated echo-tags in JS. And a helper function sub_area_tag(), now used in SCFG too.
-
Deucе authored
-
Deucе authored
Previously, timed or polled callbacks were required to keep the event loop running.
-
Deucе authored
This should allow callbacks to not interfere between (say) shells and doors.
-
Deucе authored
-
Deucе authored
I haven't added a clearImmediate() because there's currently no way of manipulating the run queue, and I can't come up with a reason someone would actually need it.
-
Deucе authored
Was terribly broken.
-
Rob Swindell authored
-
- Apr 04, 2021
-
-
Rob Swindell authored
This macro has expanded to nothing for a while now and even before, the usage was misguided and unnecessary as explained in this video: https://www.youtube.com/watch?v=cjotPqQxxAY
-
Deucе authored
Non-poll used the wrong value for calculating the high socket (which is ignored on Win32, the only non-poll() user), and the socket was being set in the wrong union member.
-
Rob Swindell authored
-
Rob Swindell authored
CID 319112
-