🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Glenn Leavell Sun, 14 Nov 1993 20:04
trn: repeated asking about new groups
#6507
Author: Glenn Leavell
Date: Sun, 14 Nov 1993 20:04
23 lines
1800 bytes
I'm running trn 3.3.  As is normal, it asks me if I want to subscribe to
any new newsgroups upon invocation.  However, it has recently been ignoring
my "n" requests.  In other words, it doesn't add any newsgroups to which I
choose NOT to subscribe to the end of my .newsrc file.  This being the case,
I am prompted about the same newsgroups over and over again, each time I 
start trn.

In an effort to try to pinpoint the problem, I've tried using a trn client
(same version) on another machine, and I get the same results.  Also, I've
tried pointing my clients to an alternate server on campus.  In both cases,
the server is an INN server.

I thought that this might be a case of running into a .newsrc length wall,
but if I manually delete a few lines from .newsrc, I still can't get trn
to add any more unsubscribed newsgroups to the file.

Does anyone have an idea as to why this might be happening?  Any help would
be appreciated.


-- 
Glenn Leavell  University of Georgia  glenn@creator.ucns.uga.edu  706-542-3135
     University Computing and Networking Services, Athens, GA 30602-1911
Re: trn: repeated asking about new groups
#6515
Author: Chad Adams
Date: Mon, 15 Nov 1993 16:17
17 lines
1632 bytes
In article <2c631a$c53@hobbes.cc.uga.edu>,
Glenn Leavell <glenn@creator.ucns.uga.edu> wrote:
>I'm running trn 3.3.  As is normal, it asks me if I want to subscribe to
>any new newsgroups upon invocation.  However, it has recently been ignoring
>my "n" requests.  In other words, it doesn't add any newsgroups to which I
>choose NOT to subscribe to the end of my .newsrc file.  This being the case,
>I am prompted about the same newsgroups over and over again, each time I 
>start trn.

It is a but in trn.  There is a discussion about it in
news.software.nntp.  Compileing nntp.c with -g instead of -O seems to
be a workaround.
-- 
Chad Adams              __               Educational Computing Network
Systems Programmer     /  ) /         /  University Park, IL  USA
1-708-235-2200        /    /_  __, __/   ECN, networking in IL since 1975
c-adams@bgu.edu      (__/ / /_/_/_(_/_   "Wherever you go, there we are."
Re: trn: repeated asking about new groups
#6518
Author: Chad Adams
Date: Mon, 15 Nov 1993 17:22
25 lines
2102 bytes
In article <2c8a2n$q5n@uxa.ecn.bgu.edu>,
Chad Adams <xcea@uxa.ecn.bgu.edu> wrote:
>In article <2c631a$c53@hobbes.cc.uga.edu>,
>Glenn Leavell <glenn@creator.ucns.uga.edu> wrote:
>>I'm running trn 3.3.  As is normal, it asks me if I want to subscribe to
>>any new newsgroups upon invocation.  However, it has recently been ignoring
>>my "n" requests.  In other words, it doesn't add any newsgroups to which I
>>choose NOT to subscribe to the end of my .newsrc file.  This being the case,
>>I am prompted about the same newsgroups over and over again, each time I 
>>start trn.
>
>It is a but in trn.  There is a discussion about it in
>news.software.nntp.  Compileing nntp.c with -g instead of -O seems to
>be a workaround.

Well it worked on trn 3.2 on SunOS 4.1.3.  I just tried it on trn 3.3 on
SunOS 5.2 and it did not fix the problem.  I compiled nntp.c with gcc
and -g and that seems to have fixed it.  There is a patch in
news.software.nntp that I did not try, I am waiting for the official
patch if possible.
-- 
Chad Adams              __               Educational Computing Network
Systems Programmer     /  ) /         /  University Park, IL  USA
1-708-235-2200        /    /_  __, __/   ECN, networking in IL since 1975
c-adams@bgu.edu      (__/ / /_/_/_(_/_   "Wherever you go, there we are."
Re: trn: repeated asking about new groups
#6531
Author: Luis P Caamano
Date: Tue, 16 Nov 1993 17:43
40 lines
2450 bytes
In article <2c8ds0$b1n@uxa.ecn.bgu.edu>,
Chad Adams <xcea@uxa.ecn.bgu.edu> wrote:
>In article <2c8a2n$q5n@uxa.ecn.bgu.edu>,
>Chad Adams <xcea@uxa.ecn.bgu.edu> wrote:
>>In article <2c631a$c53@hobbes.cc.uga.edu>,
>>Glenn Leavell <glenn@creator.ucns.uga.edu> wrote:
>>>I'm running trn 3.3.  As is normal, it asks me if I want to subscribe to
>>>any new newsgroups upon invocation.  However, it has recently been ignoring
>>>my "n" requests.  In other words, it doesn't add any newsgroups to which I
>>>choose NOT to subscribe to the end of my .newsrc file.  This being the case,
>>>I am prompted about the same newsgroups over and over again, each time I 
>>>start trn.
>>
>>It is a but in trn.  There is a discussion about it in
>>news.software.nntp.  Compileing nntp.c with -g instead of -O seems to
>>be a workaround.
>
>Well it worked on trn 3.2 on SunOS 4.1.3.  I just tried it on trn 3.3 on
>SunOS 5.2 and it did not fix the problem.  I compiled nntp.c with gcc
>and -g and that seems to have fixed it.  There is a patch in
>news.software.nntp that I did not try, I am waiting for the official
>patch if possible.


I also had the problem but we solved it by adding -I to the lib/trn/INIT
file.  We're running trn 3.3 on AIX 3.2.3.

Maybe you guys also have the -I option and we have a real bug in
some other platforms.

Just in case.



-- 
Luis P. Caamano  (LC2385)              |         lpc@dickens.com
Dickens Data Systems, Inc. Atlanta, GA |         
---------------------------------------------------------------------------
If I think I know it all, I'll stop learning. -myself
The more I learn, the more I know I know nothing. -somebody else
Re: trn: repeated asking about new groups
#6538
Author: Wayne Davison
Date: Tue, 16 Nov 1993 19:20
10 lines
1126 bytes
According to Chad Adams <xcea@uxa.ecn.bgu.edu>:
> I am waiting for the official patch if possible.

Which should be out soon.  I have a couple big bug fixes (this one and
a crash problem when trn encounters multiple bogus articles) plus some
other misc new stuff that I am in the process of getting ready for
release.  Probably in time for Thanksgiving weekend (Nov 25th or so).
-- 
Wayne Davison
davison@borland.com
Re: trn: repeated asking about new groups
#6555
Author: Eiji Hirai
Date: Thu, 18 Nov 1993 00:55
81 lines
3899 bytes
: I am prompted about the same newsgroups over and over again, each time I 
: start trn.

This is caused by a bug in trn 3.3, which can be fixed by applying the patch
below my .signature.

-- 
hirai@cc.swarthmore.edu (Eiji Hirai) | Unix Geek for Swarthmore College
I don't speak for Swarthmore College | Computing Center, Swarthmore, PA, USA

"I post, therefore I am." -Rene Descartes on Usenet

From: paulr@umbc.edu (Paul Riddle)
Newsgroups: news.software.readers,news.software.nntp
Subject: Re: trn 3.3 (NNTP) triggers SunOS optimizer bug
Date: 12 Nov 1993 16:56:46 -0500
Organization: University of Maryland, Baltimore County
Message-ID: <2c10qu$saq@umbc7.umbc.edu>

I had exactly the opposite problem on my SGI..  the value in .rnlast
was several weeks in the future, and hence I wasn't getting prompted
for any new groups at all.

I traced it down to this segment of code in "nntp.c":

     ss = (*s - '0') + (*--s - '0') * 10;
     mm = (*--s - '0') + (*--s - '0') * 10;
     hh = (*--s - '0') + (*--s - '0') * 10;
     day = (*--s - '0') + (*--s - '0') * 10;
     month = (*--s - '0') + (*--s - '0') * 10;
     *s = '\0';
     year = atoi(s-4);

I might be wrong, but I wouldn't call it an optimizer bug.  The code
assumes that the left operands get evaulated before the right
operands, which ANSI C doesn't guarantee.

This patch, which basically just removes the decrement operators from
the expressions, fixed the problem for me...  Give it a shot.  (Yes I
did report it).

--------------------------------cut-------------------------------
*** nntp.c	Tue Oct 26 13:11:27 1993
--- nntp.c.orig	Tue Oct 26 12:30:48 1993
***************
*** 132,144 ****
  
      s = ser_line + strlen(ser_line) - 1;
  
!     ss = (*s - '0') + (*(s - 1) - '0') * 10;
!     mm = (*(s - 2) - '0') + (*(s - 3) - '0') * 10;
!     hh = (*(s - 4) - '0') + (*(s - 5) - '0') * 10;
!     day = (*(s - 6) - '0') + (*(s - 7) - '0') * 10;
!     month = (*(s - 8) - '0') + (*(s - 9) - '0') * 10;
!     *(s - 9) = '\0';
!     year = atoi(s-13);
  
      /* This simple algorithm will be valid until the year 2400 */
      if (year % 4)
--- 132,144 ----
  
      s = ser_line + strlen(ser_line) - 1;
  
!     ss = (*s - '0') + (*--s - '0') * 10;
!     mm = (*--s - '0') + (*--s - '0') * 10;
!     hh = (*--s - '0') + (*--s - '0') * 10;
!     day = (*--s - '0') + (*--s - '0') * 10;
!     month = (*--s - '0') + (*--s - '0') * 10;
!     *s = '\0';
!     year = atoi(s-4);
  
      /* This simple algorithm will be valid until the year 2400 */
      if (year % 4)
---------------------------cut----------------------------------


-- 
Paul Riddle                         | Internet:  paulr@umbc.edu        |
UMBC, Academic Computing Services   | Phone:  (410) 455-3860 FAX -1065 |
Baltimore, MD 21228                 +----------------------------------+
"SPARCClassic....  The Sun 3/50 of the 90's!"
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