Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit c0c60161 authored by rswindell's avatar rswindell
Browse files

Don't require that the last character of the "DateTime" field of packed

messages is a null (0x00) byte. Some broken FidoNet software may include
a full 20 usable characters in their DateTime header field, like so:
"04 Feb 119  20:26:32" - representing February 4th, 2019.  Y2K. <sigh>

The DateTime won't be parsed fully correct, but at least the packet won't be
rejected outright because it is "Grunged". - for Alterego (ALTERANT)
parent b13983ec
......@@ -5694,7 +5694,7 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
if(pkdmsg.type == 2 /* Recognized type */
&& pkdmsg.time[0] != 0
&& pkdmsg.time[sizeof(pkdmsg.time)-1] == 0
// && pkdmsg.time[sizeof(pkdmsg.time)-1] == 0
&& freadstr(fidomsg, hdr.to, sizeof(hdr.to)) != NULL
&& freadstr(fidomsg, hdr.from, sizeof(hdr.from)) != NULL
&& freadstr(fidomsg, hdr.subj, sizeof(hdr.subj)) != NULL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment