Article View: news.software.readers
Article #2370trn bug: unrelated topic becomes related
From: John Schmitz
Date: Sat, 17 Oct 1992 05:54
Date: Sat, 17 Oct 1992 05:54
35 lines
1805 bytes
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) {
Technical Details
Message-ID:
<1bo9r9INN541@hpscdf.scd.hp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!caen!sdd.hp.com!scd.hp.com!schmitzShow Full Headers
Complete Article Headers
Message-ID: <1bo9r9INN541@hpscdf.scd.hp.com> Subject: trn bug: unrelated topic becomes related Date: Sat, 17 Oct 1992 05:54:49 +0000 From: schmitz@scd.hp.com (John Schmitz) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!caen!sdd.hp.com!scd.hp.com!schmitz Newsgroups: news.software.readers Organization: Hewlett-Packard Santa Clara Division Lines: 35 NNTP-Posting-Host: hpsceo.scd.hp.com