From owner-freebsd-ports Mon Jan 3 14:46:20 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by hub.freebsd.org (Postfix) with ESMTP id 75C6914D59; Mon, 3 Jan 2000 14:46:14 -0800 (PST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id JAA08469; Tue, 4 Jan 2000 09:46:11 +1100 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id JAA26513; Tue, 4 Jan 2000 09:46:11 +1100 (EST) Message-Id: <200001032246.JAA26513@lightning.itga.com.au> X-Mailer: exmh version 2.0.1 12/23/97 From: Gregory Bond To: ports@freebsd.org, stable@freebsd.org Subject: [Patch] hylafax port stats not Y2K Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Jan 2000 09:46:10 +1100 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hylafax 4.0.2 on freeBSD 3.4-STABLE. The stats reporting from hylafax is not y2k-safe. Patch follows. 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]; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message