summaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-01-24 04:54:44 +0000
committersteve <steve@FreeBSD.org>2000-01-24 04:54:44 +0000
commit1aea691ab44ad62f5bcb080e85a7436615631fdd (patch)
treea44a7a8b88c8eb23710d9b13ab41358428ee5f4d /comms
parentbd181f89bc5142d9700a2978371633dc4d19e9d7 (diff)
downloadFreeBSD-ports-1aea691ab44ad62f5bcb080e85a7436615631fdd.zip
FreeBSD-ports-1aea691ab44ad62f5bcb080e85a7436615631fdd.tar.gz
Fix a Y2K problem.
PR: 15868 Submitted by: Gregory Bond <gnb@itga.com.au>
Diffstat (limited to 'comms')
-rw-r--r--comms/hylafax/files/patch-ag13
1 files changed, 13 insertions, 0 deletions
diff --git a/comms/hylafax/files/patch-ag b/comms/hylafax/files/patch-ag
new file mode 100644
index 0000000..07b830d
--- /dev/null
+++ b/comms/hylafax/files/patch-ag
@@ -0,0 +1,13 @@
+--- util/xferstats.sh.in.orig Sun Jan 23 19:45:49 2000
++++ util/xferstats.sh.in Sun Jan 23 19:45:29 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];
OpenPOWER on IntegriCloud