Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2000 10:14:07 +1100 (EST)
From:      Gregory Bond <gnb@itga.com.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15868: [patch] hylafax reporting not y2k
Message-ID:  <200001032314.KAA47271@hellcat.itga.com.au>

next in thread | raw e-mail | index | archive | help

>Number:         15868
>Category:       ports
>Synopsis:       [patch] hylafax reporting not y2k
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan  3 15:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gregory Bond
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
ITG Australia Limited
>Environment:

FreeBSD 3.4-STABLE, hylafax-4.0.2 port.

>Description:

The reporting function of hylafax (xferstats) is not y2k compatible.

>How-To-Repeat:

	run
		xferstats -age 7
	and note that all faxes since the beginning of time are summarised.

>Fix:
	

doorman## diff -u xferstats.orig xferstats
--- xferstats.orig      Wed May 12 00:36:05 1999
+++ xferstats   Tue Jan  4 09:43:46 2000
@@ -186,7 +186,9 @@
 #
 function cvtDateTime(s)
 {
-    yday = substr(s,7,2)*365 + substr(s,4,2) - 1;
+    y = substr(s,7,2);
+    if ( y < 50) y += 100;
+    yday = y*365 + substr(s,4,2) - 1;
     mon = substr(s,0,2) + 0;
     for (i = 0; i < mon; i++)
        yday += daysInMonth[i];


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001032314.KAA47271>