Article View: news.software.nntp
Article #4041Re: trn-3.4.1 keeps asking about new groups!
From: Davin Milun
Date: Thu, 04 Jan 1996 00:00
Date: Thu, 04 Jan 1996 00:00
47 lines
2475 bytes
2475 bytes
Duncan Gibson <duncan@yc.estec.esa.nl> wrote:
�
�We are running on HPUX 9.01 with c_news-Nov.94, nntp-1.5.11t5, and trn-3.4.1
�
�Since I came back after the Festive Season, I am asked everytime I start trn
�whether I want to subscribe to new newsgroups which have come in since before
�the Christmas break. I don't want to subscribe, so I hit 'n' or 'N' but the
�next time that I start trn I am asked again. This never used to happen!
�
�I've checked that the system times on the news server and my machine are in
�sync (they are) and that there are no obvious problems with the active and
�active.times files (I can't see any) so I can't really work it out.
�
�Of course I can always type 'y' or 'Y' and then unsubscribe when I reach the
�groups, but I'm intrigued as to why this is happening and I would rather keep
�my .newsrc short.
�
�Has anyone else seen this before? Does anyone know how to fix whatever it is?
It's a bug in the way trn counts the number of past leap-years. Since 1996
is a leap year - it bit us now.
Here is a patch for it.
*** nntp.c_orig Sat Nov 19 01:01:23 1994
--- nntp.c Wed Jan 3 01:41:34 1996
***************
*** 320,324 ****
day += maxdays[month];
! ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60
+ mm) * 60 + ss;
--- 320,324 ----
day += maxdays[month];
! ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60
+ mm) * 60 + ss;
Davin.
-------------------------------------------------------------------------------
Davin Milun Internet: milun@cs.Buffalo.EDU
Fax: (716) 645-3464
WWW: http://www.cs.buffalo.edu/~milun/
Technical Details
Message-ID:
<4cgs1u$br6@azure.acsu.buffalo.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mailReferences:
<DKnuzI.FsG@yc.estec.esa.nl>Show Full Headers
Complete Article Headers
Message-ID: <4cgs1u$br6@azure.acsu.buffalo.edu> Subject: Re: trn-3.4.1 keeps asking about new groups! Date: Thu, 04 Jan 1996 00:00:00 +0000 From: milun@cs.buffalo.edu (Davin Milun) References: <DKnuzI.FsG@yc.estec.esa.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail X-Deja-AN: 133968103 Distribution: inet Organization: State University of New York at Buffalo/Computer Science Newsgroups: news.admin.misc,news.software.nntp,news.software.readers Nntp-posting-user: milun