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 b92bf999 authored by Rob Swindell's avatar Rob Swindell 💬

Don't do the double-EOT trick in "G-mode"

Interesting, this is how this code worked back in 2005, but was changed without a good description of why:
http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/xmodem.c?r1=1.15&r2=1.16

This addresses the anonymous SyncTERM bug report:
https://sourceforge.net/p/syncterm/tickets/46/

Thanks, whoever that was. :-)
parent bc5bfa5f
Pipeline #1377 passed with stage
in 11 minutes and 26 seconds
......@@ -200,7 +200,7 @@ int xmodem_get_block(xmodem_t* xm, uchar* block, unsigned expected_block_num)
break;
case EOT:
lprintf(xm,LOG_DEBUG,"Block %u: EOT received", expected_block_num);
if(/*((*xm->mode)&(YMODEM|GMODE))==YMODEM &&*/ !eot) {
if(!((*xm->mode) & GMODE) && !eot) {
lprintf(xm,LOG_INFO,"NAKing first EOT");
eot=1;
xmodem_put_nak(xm,expected_block_num); /* chuck's double EOT trick */
......
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