🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Alex Strasheim Tue, 25 Jun 1996 00:00
trn date bug?
#23419
Author: Alex Strasheim
Date: Tue, 25 Jun 1996 00:00
10 lines
785 bytes
There's a leap year bug in trn which screws it up when it's trying to 
decide which groups ought to be offered up as new groups.  I've lost my 
notes on the bug, and I can't remember what to change.  Does anyone here 
know?  Or is there a new realease somewhere that fixes this?

Thanks...


Re: trn date bug?
#23393
Author: Jeff Makey
Date: Tue, 25 Jun 1996 00:00
48 lines
1795 bytes
Here's the patch that works for me.

                             :: Jeff Makey
                                jeff@sdsc.edu

Department of Tautological Pleonasms and Superfluous Redundancies Department

-----------------------------------------------------------------

*** trn-3.6/nntp.c.~1~	Fri Nov 18 22:01:23 1994
--- trn-3.6/nntp.c	Wed Jan 10 18:31:10 1996
***************
*** 306,312 ****
      s[4] = '\0';
      year = atoi(s);
  
!     /* This simple algorithm will be valid until the year 2400 */
      if (year % 4)
  	maxdays[2] = 28;
      else
--- 306,312 ----
      s[4] = '\0';
      year = atoi(s);
  
!     /* This simple algorithm will be valid through the year 2099 */
      if (year % 4)
  	maxdays[2] = 28;
      else
***************
*** 319,325 ****
      for (month--; month; month--)
  	day += maxdays[month];
  
!     ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60
  	  + mm) * 60 + ss;
  
      return ss;
--- 319,325 ----
      for (month--; month; month--)
  	day += maxdays[month];
  
!     ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60
  	  + mm) * 60 + ss;
  
      return ss;

Re: trn date bug?
#23312
Author: Jonathan Byrd
Date: Thu, 27 Jun 1996 00:00
38 lines
2643 bytes
Alan Coopersmith wrote:
> 
> Jonathan Byrd <jon@isu.edu> writes in news.software.readers:
> |I encountered the same problem, and applied the patch.  Unfortunately,
> |it did not seem to fix the problem.  If I answer "n" or "N" to the
> |subscribe query, the newsgroups never get added to my .newsrc, and
> |I get asked about the same newsgroups in the next session.  The only
> |way that newsgroups get added to my .newsrc file is if I subscribe.

> If you answered yes to the Configure question "Does your news server
> support an accurate active.times file?" then trn won't add the groups
> to your newsrc, because you told it that the server has a file that
> lists when new groups were added, so it doesn't need to keep track of
> what groups you've already seen.  Of course, if the server doesn't
> actually do this, trn will exhibit the behavior you've described.
> Unfortunately, I don't think there's any way to change this other than
> re-running Configure and rebuilding.

Thank you Alan, your advice seems to be correct.  I reconfigured, and
it no longer asks about the same groups repeatedly.  Unfortunately, that
is at the cost of much longer startup times.  Users have begun to complain
(some of them are the same ones who complained about the repeated subscribe
queries as well).  I seem to be stuck between a rock and a hard place.

I am running INN 1.4sec, which supposedly keeps an accurate active.times
list.  And trn supposedly knows how to use it.  Does anyone have an idea
why trn does not seem to be getting the message that the groups have been
seen before?  I am using trn 3.6 on an HP 9000/827 box running HPUX 9.04.
The active.times list appears to be current, and properly formatted.

I am crossposting to news.software.nntp, in case the problem is with the
server, and not trn.  I appreciate any and all help.

-- 
jonathan byrd
jon@isu.edu

Re: trn date bug?
#23398
Author: Alan Brown
Date: Sun, 30 Jun 1996 00:00
16 lines
1218 bytes
In article <31D2D7A8.51A@isu.edu>, Jonathan Byrd  <jon@isu.edu> wrote:

>I am running INN 1.4sec, which supposedly keeps an accurate active.times
>list.  And trn supposedly knows how to use it.  Does anyone have an idea
>why trn does not seem to be getting the message that the groups have been
>seen before? 

Has the leap year bugfix patch been applied to trn source?

AB

-- 
"...pending my interrogation and stuck for an excuse, I came up with 
    two more variations on pastry abuse..."

Re: trn date bug?
#23407
Author: Ollivier Robert
Date: Sun, 30 Jun 1996 00:00
42 lines
1889 bytes
 [courtesy cc of this posting sent to both authors via email]

 [followups redirected to n.s.readers]

In article <4r3shm$nop@papaioea.manawatu.gen.nz>,
Alan Brown <alan@papaioea.manawatu.gen.nz> wrote:
> 
> Has the leap year bugfix patch been applied to trn source?

There   has  been no  release   of trn  since 3.6    so  you must  apply it
yourself. The fix is in trn 4-beta. 

I include it as it is very small. 

*** nntp.c.orig	Tue Jan  2 15:06:51 1996
--- nntp.c	Tue Jan  2 15:27:43 1996
***************
*** 319,325 ****
      for (month--; month; month--)
  	day += maxdays[month];
  
!     ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60
  	  + mm) * 60 + ss;
  
      return ss;
--- 319,325 ----
      for (month--; month; month--)
  	day += maxdays[month];
  
!     ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60
  	  + mm) * 60 + ss;
  
      return ss;

==============================================================================

-- 
Ollivier ROBERT  -=- FreeBSD: The daemon is FREE! -=-  roberto@freebsd.org
-=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-

Re: trn date bug?
#23438
Author: Jonathan Byrd
Date: Mon, 01 Jul 1996 00:00
22 lines
1369 bytes
Alan Brown wrote:

> In article <31D2D7A8.51A@isu.edu>, Jonathan Byrd  <jon@isu.edu> wrote:
> 
> >I am running INN 1.4sec, which supposedly keeps an accurate active.times
> >list.  And trn supposedly knows how to use it.  Does anyone have an idea
> >why trn does not seem to be getting the message that the groups have been
> >seen before?
> 
> Has the leap year bugfix patch been applied to trn source?

Yes, the leap year patch was the first thing I tried.  I also
verified that my news server (INN 1.4) keeps an up to date
active.times file, and will respond properly to a newgroups
command.

-- 
jonathan byrd
jon@isu.edu

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