🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8902

Re: trn date bug?

#8902
From: Ollivier Robert
Date: Sun, 30 Jun 1996 00:00
42 lines
1963 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 -=-=-=-=-=-=-=-=-=-=-=-=-

Technical Details
Message-ID: <4r6smn$os@keltia.freenix.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4qoqgk$f6m@suba01.suba.com> <4qrtq8$gal@agate.berkeley.edu> <31D2D7A8.51A@isu.edu> <4r3shm$nop@papaioea.manawatu.gen.nz>

Show Full Headers
Complete Article Headers
Message-ID: <4r6smn$os@keltia.freenix.fr>
Subject: Re: trn date bug?
Date: Sun, 30 Jun 1996 00:00:00 +0000
From: roberto@keltia.freenix.fr (Ollivier Robert)
References: <4qoqgk$f6m@suba01.suba.com> <4qrtq8$gal@agate.berkeley.edu> <31D2D7A8.51A@isu.edu> <4r3shm$nop@papaioea.manawatu.gen.nz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 163028669
Followup-to: news.software.readers
Content-type: text/plain; charset=ISO-8859-1
Organization: Usenet Canal Historique
Mime-version: 1.0
Newsgroups: news.software.readers,news.software.nntp