🚀 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 F Hall Tue, 10 Aug 2004 23:15
Trn bug - corrupted .newsrc file
#153474
Author: 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
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