summaryrefslogtreecommitdiff
path: root/games/xboard/patches
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2000-09-20 15:08:48 +0000
committerhubertf <hubertf@pkgsrc.org>2000-09-20 15:08:48 +0000
commit9e8ec87da9cf5824d41f8d7f9f53c631157a2b04 (patch)
tree691ac307de86b5bda98b40e2d13017692af18b45 /games/xboard/patches
parentd60ae9cd6acf29c3d06ab2fd78d4d0522ad6a66a (diff)
downloadpkgsrc-9e8ec87da9cf5824d41f8d7f9f53c631157a2b04.tar.gz
Fix y2k bug in 'cmail'
Reported in PR 11048 by Chris Pinnock <C.J.E.Pinnock@qmw.ac.uk>.
Diffstat (limited to 'games/xboard/patches')
-rw-r--r--games/xboard/patches/patch-ag19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/xboard/patches/patch-ag b/games/xboard/patches/patch-ag
new file mode 100644
index 00000000000..b807054554c
--- /dev/null
+++ b/games/xboard/patches/patch-ag
@@ -0,0 +1,19 @@
+$NetBSD: patch-ag,v 1.1 2000/09/20 15:08:48 hubertf Exp $
+
+--- cmail.in.orig Mon Aug 16 06:36:54 1999
++++ cmail.in
+@@ -798,12 +798,8 @@
+ if ($mon < 10) {
+ $mon = "0$mon" ;
+ }
+- if ($year < 94) {
+- $century = 20 ;
+- } else {
+- $century = 19 ;
+- }
+- "$century$year.$mon.$mday" ;
++ $real_year = 1900 + $year;
++ "$real_year.$mon.$mday" ;
+ }
+ #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
+