🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by John Schmitz Sat, 17 Oct 1992 05:54
trn bug: unrelated topic becomes related
#2370
Author: John Schmitz
Date: Sat, 17 Oct 1992 05:54
35 lines
1805 bytes
I believe that trn has a bug that happens when you respond 'y' to
the "are you starting an unrelated topic?"  question.  It blindly
assumes that it will get a null article if it adds one to the last
article - but that was the last article when trn started the group
and this may not be true now.  In fact, especially with inn, the
current last article can be a few articles higher than the original
last quite easily.  This can cause you to reference an article you
didn't intend to reference.

This patch seems to fix it by using 0 instead of lastart + 1.
Comments?


*** respond.c.orig	Fri Jun  5 10:46:41 1992
--- respond.c	Fri Oct 16 22:26:19 1992
***************
*** 689,696 ****
  	in_char("\n\nAre you starting an unrelated topic? [yn] ", 'F');
  	setdef(buf,"y");
  	if (*buf != 'n')
! 	    art = lastart + 1;
      }
      artopen(art);
      tmpfp = fopen(headname,"w");
      if (tmpfp == Nullfp) {
--- 689,697 ----
  	in_char("\n\nAre you starting an unrelated topic? [yn] ", 'F');
  	setdef(buf,"y");
  	if (*buf != 'n')
! 	    art = 0;
      }
+     if (art > lastart) art = 0;
      artopen(art);
      tmpfp = fopen(headname,"w");
      if (tmpfp == Nullfp) {
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads