🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #153474

Trn bug - corrupted .newsrc file

#153474
From: John F Hall
Date: Tue, 10 Aug 2004 23:15
30 lines
2098 bytes
[I posted this article about three weeks ago, but unfortunately owing to
a configuration error on my system it did not propagate.  When I
corrected the problem the article was too old to propagate properly.  I
am therefore reposting it.  Apologies to anyone who did see the earlier
article.]

I've just upgraded to Slackware 9.1, which included an updated trn.  The
result was a corrupted .newsrc file.

Typical errors are "100226,100800,101475,-,101477101476101478" and
"10465-10467,10469-10471,,1055210589,,,106821059110743,10770".

(Actually I find I wasn't using the trn included with the previous
update either but had kept a very old version, so this is a rather old
problem.)

However I have investigated this and find the problem is in rcln.c where
the "int" output of isdigit() is assigned to a "char" sized boolean.
This causes misprocessing of Xref entries.

To cure this change line 139 of rcln.c from

     morenum = isdigit(*s);            /* will it need a comma after? */

to

     morenum = (isdigit(*s) != 0);     /* will it need a comma after? */

-- 
John F Hall
Technical Details
Message-ID: <cfbkug$ns9$1@avondale.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!avondale.demon.co.uk!jfh

Show Full Headers
Complete Article Headers
Message-ID: <cfbkug$ns9$1@avondale.demon.co.uk>
Subject: Trn bug - corrupted .newsrc file
Date: Tue, 10 Aug 2004 23:15:28 +0000
From: jfh@avondale.demon.co.uk (John F Hall)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!avondale.demon.co.uk!jfh
Newsgroups: news.software.readers,alt.os.linux.slackware
Organization: avondale.demon.co.uk
Lines: 30
NNTP-Posting-Host: avondale.demon.co.uk
X-Trace: news.demon.co.uk 1092181337 6941 158.152.19.72 (10 Aug 2004 23:42:17
 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: 10 Aug 2004 23:15:28 GMT